/* Unified Auth Styles for Login, Register, and Recovery */

.auth-hero {
    padding-top: 14rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-hero .hero-container {
    display: block;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg, 20px);
    padding: 2rem;
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    /* Default max-width, can be overridden */
    max-width: 500px;
    /* Animación suave cuando auth-wrapper tiene clase loaded */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Estado inicial del glass-card cuando auth-wrapper no está loaded */
.auth-wrapper:not(.loaded) .glass-card {
    opacity: 0;
    transform: translateY(20px);
}

.glass-card.wide {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon-container {
    width: 60px;
    height: 60px;
    /* Default gradient, overrides for specific pages if needed */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    animation: float 4s ease-in-out infinite;
}

.auth-title {
    font-size: 2rem;
    color: var(--dark-blue, #1e293b);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-muted, #64748b);
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark, #334155);
    font-size: 0.95rem;
    text-align: left;
}

.form-label i {
    color: var(--primary-pink, #ec4899);
    margin-right: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 2px solid #E2E8F0;
    background: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink, #ec4899);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 20;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-pink, #ec4899);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.forgot-link {
    color: var(--primary-blue, #3b82f6);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked~.checkmark {
    background: var(--primary-blue, #3b82f6);
    border-color: var(--primary-blue, #3b82f6);
}

.checkmark::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 0.7rem;
}

.checkbox-container input:checked~.checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

.label-text {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.label-text a {
    color: var(--primary-pink, #ec4899);
    text-decoration: none;
    font-weight: 700;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}


.form-actions {
    width: 100%;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    /* Pill shape for modern look */
    font-weight: 700;
    font-size: 1.1rem;
    /* Larger text */
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Force full width as requested */
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink, #ec4899) 0%, var(--primary-purple, #8b5cf6) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
    filter: brightness(1.1);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    /* Slight adjustments */
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 2px solid #E2E8F0;
    background: white;
    color: var(--text-dark, #334155);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-google:hover {
    background-color: #f1f5f9;
    /* Darker gray for visibility */
    border-color: #cbd5e1;
    color: #1e293b;
    /* Darker text */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 22px;
    height: 22px;
}


.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
}

.auth-footer p {
    color: var(--text-muted, #64748b);
    font-weight: 600;
    margin: 0;
}

.link-highlight {
    color: var(--primary-pink, #ec4899);
    text-decoration: none;
    font-weight: 700;
}

.link-highlight:hover {
    text-decoration: underline;
}

/* Specific overrides can go here if absolutely necessary, but try to keep it generic */

/* Select dropdown styling */
.form-control select,
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ec4899' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

.form-control select:hover,
select.form-control:hover {
    border-color: var(--primary-pink, #ec4899);
}

.form-control select option,
select.form-control option {
    padding: 0.5rem;
    font-weight: 600;
}

/* Role selection enhancement */
.form-control select[name="role"] {
    font-weight: 700;
    color: var(--text-dark, #334155);
}

.form-control select[name="role"] option[value=""] {
    color: var(--text-muted, #94a3b8);
}