/* Auth Pages Styles - Citron */

/* Layout contenedor */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F1115 0%, #1A1D24 50%, #0F1115 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(109, 190, 69, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109, 190, 69, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

/* Card principal */
.auth-card {
    background: #202531;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid #2A2F3A;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo y titulo */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 48px;
    margin-bottom: 16px;
}

.auth-logo h2 {
    color: #E5E7EB !important;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-logo p {
    color: #A1A1AA;
    font-size: 15px;
    margin: 0;
}

/* Formulario */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    color: #E5E7EB;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    background: #1A1D24 !important;
    border: 1px solid #2A2F3A !important;
    border-radius: 12px !important;
    color: #E5E7EB !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: auto !important;
}

.auth-form .form-control::placeholder {
    color: #A1A1AA !important;
}

.auth-form .form-control:focus {
    border-color: #6DBE45 !important;
    box-shadow: 0 0 0 3px rgba(109, 190, 69, 0.15) !important;
    outline: none !important;
}

.auth-form .form-control.is-invalid,
.auth-form .form-control.has-error {
    border-color: #ef4444 !important;
}

/* Checkbox */
.auth-form .custom-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .custom-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6DBE45;
    cursor: pointer;
}

.auth-form .custom-control label {
    color: #A1A1AA;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
}

/* Boton submit principal */
.auth-btn {
    width: 100%;
    padding: 14px 24px !important;
    background: #6DBE45 !important;
    border: none !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.auth-btn:hover {
    background: #9BE564 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 190, 69, 0.35);
}

.auth-btn:active {
    background: #5AAE36 !important;
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2A2F3A;
}

.auth-divider span {
    color: #A1A1AA;
    font-size: 13px;
    white-space: nowrap;
}

/* Links de navegación */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2A2F3A;
}

.auth-footer p {
    color: #A1A1AA;
    font-size: 14px;
    margin: 0;
}

.auth-footer a,
.auth-link {
    color: #6DBE45 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover,
.auth-link:hover {
    color: #9BE564 !important;
    text-decoration: underline;
}

/* Errores de validación */
.auth-form .help-block,
.auth-form .invalid-feedback {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-logo h2 {
        font-size: 24px;
    }
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px !important;
}

.password-toggle, .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #A1A1AA;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover, .toggle-password:hover {
    color: #6DBE45;
}

/* Evitar que el ojo se monte sobre el check o la equis de validación de Bootstrap */
.password-wrapper .form-control.is-valid ~ .password-toggle,
.password-wrapper .form-control.is-invalid ~ .password-toggle,
.password-wrapper .form-control.is-valid ~ .toggle-password,
.password-wrapper .form-control.is-invalid ~ .toggle-password {
    right: 45px;
}

.password-wrapper .form-control.is-valid,
.password-wrapper .form-control.is-invalid {
    padding-right: 75px !important;
}

/* Social buttons (opcional) */
.auth-social-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #2A2F3A;
    border-radius: 12px;
    background: transparent;
    color: #E5E7EB;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-social-btn:hover {
    border-color: #6DBE45;
    background: rgba(109, 190, 69, 0.05);
}

/* Back to home */
.auth-back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.auth-back-home a {
    color: #A1A1AA;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-back-home a:hover {
    color: #6DBE45;
}