/* Base styles */
body {
    min-height: 100vh;
    background-color: #ffffff;
}

main {
    min-height: calc(100vh - 76px); /* Account for navbar height */
    margin-top: 76px; /* Match navbar height */
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Feature items styling */
.feature-item {
    background: rgba(52, 58, 64, 0.05);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(52, 58, 64, 0.08);
}

.feature-item p {
    color: #343a40 !important;
}

/* Card enhancements */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Input group enhancements */
.input-group-text, 
.form-control {
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.input-group:focus-within .input-group-text {
    border-color: #dc3545;
    color: #dc3545;
}

/* Button enhancements */
.btn-danger {
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.btn-danger:active {
    transform: translateY(0);
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    main {
        margin-top: 56px; /* Smaller navbar on mobile */
        min-height: calc(100vh - 56px);
        padding: 1rem 0;
    }

    .col-lg-6:first-child {
        display: none; /* Hide features on mobile */
    }

    .card {
        border-radius: 0;
        box-shadow: none !important;
        transform: none !important;
    }

    .card:hover {
        transform: none !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .input-group,
    .btn-danger {
        margin-bottom: 1rem;
    }

    .form-control,
    .input-group-text {
        padding: 0.75rem;
    }
}

/* Loading state */
.btn-danger.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-danger.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
.form-control:focus,
.btn:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    outline: none;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .card {
        border: 2px solid;
    }
    
    .input-group {
        border: 1px solid;
    }
}
