/* ==========================================================================
   REGISTRO DE USUARIOS - DISEÑO MODERNO Y RESPONSIVE DULCE HOGAR
   ========================================================================== */

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    padding: 42px 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    box-sizing: border-box;
}

.auth-card h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    text-align: left;
}

.auth-card input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px; /* 16px exacto para evitar zoom forzado en iPhone/Safari */
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.auth-card input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.auth-card button {
    width: 100%;
    padding: 15px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    min-height: 48px;
}

.auth-card button:hover {
    background: #047857;
    transform: translateY(-1px);
}

.auth-card a {
    display: inline-block;
    margin-top: 20px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s;
}

.auth-card a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ==========================================================================
   OPTIMIZACIONES ESPECÍFICAS PARA CELULARES (< 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .auth-container {
        padding: 20px 14px;
        align-items: center;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
        max-width: 100%;
    }

    .auth-card h2 {
        font-size: 1.6rem;
    }

    .auth-card input {
        font-size: 16px !important;
        padding: 14px 15px;
    }

    .auth-card button {
        padding: 15px;
        font-size: 1.05rem;
    }
}
