/* ==============================
   RESET GLOBAL
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================
   BASE
================================ */
html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: 'Cormorant Garamond', serif;
    color: #d9d9d9;
    background:transparent;
}

/* ==============================
   FONDO
================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.1),
            rgba(0,0,0,0.85)
        ),
        url("../img/3.png") center / cover no-repeat;
}

/* ==============================
   CONTENEDOR GENERAL
================================ */
.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;

}

/* ==============================
   CAJA
================================ */
.auth-box {
    width: 100%;
    max-width: 420px;
    padding: 48px 36px;

    background: transparent;
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 60px rgba(255,255,255,0.05);

    text-align: center;
}

/* ==============================
   TEXTOS
================================ */
.auth-box h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #fff;
}

.auth-subtitle {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 32px;
}

/* ==============================
   INPUTS (BLINDADOS)
================================ */
.auth-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-group label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 6px;
    display: block;
}

.auth-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;

    background-color: transparent !important;
    background-image: none !important;

    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff !important;

    outline: none;
    appearance: none;
    -webkit-appearance: none;

    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

.auth-group input:focus {
    border-color: rgba(255,255,255,0.6);
    background-color: transparent !important;
}

/* 🔥 AUTOFILL CHROME / SAFARI */
.auth-group input:-webkit-autofill,
.auth-group input:-webkit-autofill:hover,
.auth-group input:-webkit-autofill:focus,
.auth-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ==============================
   BOTÓN
================================ */
.auth-button {
    width: 100%;
    padding: 15px 0;
    font-size: 0.9rem;
    letter-spacing: 2px;

    background: transparent;
    color: #fff;

    border: 1px solid rgba(255,255,255,0.35);
    cursor: pointer;
}

/* ==============================
   LINKS
================================ */
.auth-links {
    margin-top: 28px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.auth-links a {
    color: #fff;
    text-decoration: none;
}

/* ==============================
   CAPTCHA CONTROLADO
================================ */
.captcha-side {
    width: 100%;
    justify-content: center;
    overflow: hidden;
    object-fit: contain;
    margin-bottom: 1rem;
}

.captcha-scale {
    transform-origin: center;
}

@media (max-width: 480px) {
    .captcha-scale {
        transform: scale(0.88);
    }
}

@media (max-width: 360px) {
    .captcha-scale {
        transform: scale(0.82);
    }
}

/* ==============================
   MOBILE
================================ */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 44px 28px;
    }

    .auth-box h1 {
        font-size: 1.8rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .auth-group input {
        font-size: 16px; /* evita zoom iOS */
    }
}
