﻿/* ===== AUTH LAYOUT ===== */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* ===== LOGO SECTION ===== */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

    .logo h1 {
        color: #2d3748;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .logo p {
        color: #718096;
        font-size: 1rem;
        line-height: 1.5;
    }

/* ===== FORM STYLES ===== */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        background: white;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-control::placeholder {
        color: #a0aec0;
    }

/* ===== VALIDATION STYLES ===== */
.validation-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 0.25rem;
    display: block;
}

.field-validation-error {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 0.25rem;
    display: block;
}

.text-danger {
    color: #e53e3e;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== OPTIONS ===== */
.additional-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 14px;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* ===== FOOTER LINKS ===== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 14px;
    width: 100%;
}

    .auth-footer a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        margin: 0 8px;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #fed7d7;
    border-color: #e53e3e;
    color: #742a2a;
}

.alert-success {
    background-color: #c6f6d5;
    border-color: #38a169;
    color: #22543d;
}

.alert-info {
    background-color: #bee3f8;
    border-color: #3182ce;
    color: #1a365d;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-body {
        padding: 15px;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .additional-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .form-control {
        padding: 10px 14px 10px 40px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* ===== MINIMAL FOOTER LINKS ===== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.auth-footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.auth-footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

    .auth-footer-link:hover {
        color: #5a67d8;
        border-bottom-color: #667eea;
        text-decoration: none;
    }

@media (max-width: 480px) {
    .auth-footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* ===== VALIDATION STYLES ===== */
.validation-summary-errors {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-left: 4px solid #e53e3e;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

    .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .validation-summary-errors li {
        color: #742a2a;
        font-size: 14px;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .validation-summary-errors li:before {
            content: "⚠";
            font-size: 16px;
            flex-shrink: 0;
        }

        .validation-summary-errors li:last-child {
            margin-bottom: 0;
        }

.field-validation-error {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 0.5rem;
    display: block;
    padding: 0.5rem;
    background: #fed7d7;
    border-radius: 4px;
    border-left: 3px solid #e53e3e;
    animation: slideDown 0.3s ease-out;
}

.input-validation-error {
    border-color: #e53e3e !important;
    background: #fff5f5 !important;
}

    .input-validation-error:focus {
        border-color: #e53e3e !important;
        box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}