/* auth.css - Estilos compartidos de login.html y register.html */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: #aaa;
    letter-spacing: 0.3px;
}

.auth-form .form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    color: #fff;
}

.auth-form .form-control::placeholder {
    color: #555;
}

.auth-btn {
    width: 100%;
    padding: 0.9rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    background: #ddd;
    transform: translateY(-2px);
}

.auth-btn:active {
    transform: translateY(0);
}

.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: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    background: #0a0a0a;
    padding: 0 1rem;
    position: relative;
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-footer-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.auth-footer-text a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.auth-footer-text a:hover {
    opacity: 0.7;
}

.auth-error {
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: none;
}

.auth-error-icon {
    margin-right: 6px;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.password-toggle .toggle-eye:hover {
    color: #aaa;
}

/* Register-specific */
.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #999;
    line-height: 1.5;
}

.auth-legal {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.auth-legal a {
    color: #ccc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Account type selector */
.account-type-selector {
    display: flex;
    gap: 0.75rem;
}

.account-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.88rem;
}

.account-type-option--active {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.account-type-option--inactive {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
}

.account-type-icon {
    margin-right: 5px;
    font-size: 0.8rem;
    color: #888;
}

/* Org info notice */
.org-notice {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.org-notice-icon {
    margin-right: 4px;
    color: #888;
}

.org-notice strong {
    color: #aaa;
}

.org-notice a {
    color: #fff;
    text-underline-offset: 2px;
}

/* Terms checkbox */
.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.82rem;
    line-height: 1.6;
    font-weight: 400;
}

.terms-label a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-label a:hover {
    color: #ddd;
}

.terms-checkbox {
    margin-top: 4px;
    accent-color: #fff;
    min-width: 16px;
    cursor: pointer;
}

/* Auth link arrow */
.auth-link-arrow {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .auth-page {
        padding-top: 120px;
        padding-bottom: 60px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .auth-card .auth-subtitle {
        font-size: 0.88rem;
        margin-bottom: 2rem;
    }

    .auth-form .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .account-type-selector {
        flex-direction: column;
        gap: 0.5rem;
    }

    .account-type-option {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .terms-label {
        font-size: 0.78rem;
    }

    .auth-divider {
        margin: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .auth-card {
        padding: 1.8rem 1.2rem;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 1.35rem;
    }

    .auth-card .auth-subtitle {
        font-size: 0.82rem;
    }

    .auth-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .org-notice {
        font-size: 0.72rem;
    }

    .password-requirements {
        font-size: 0.72rem;
    }
}
