/* ===================== */
/* VARIÁVEIS E RESET     */
/* ===================== */
:root {
    color-scheme: light only !important;
    --primary-color: #7D3B56;
    --primary-dark: #5d2a40;
    --primary-light: #a05e7c;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --border-color: #d1d5db;
    --background-overlay: rgba(255, 255, 255, 0.85);
    --form-background: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forçar tema claro em todo o documento */
html {
    color-scheme: light only !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== */
/* FUNDO E CONTAINER     */
/* ===================== */
body {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Poppins', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(125,59,86,0.05) 100%);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* ===================== */
/* CONTAINERS            */
/* ===================== */
.login-container,
.registration-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 100vh;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    padding: 20px;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition);
    display: block;
    margin: 0 auto 24px;
}
.logo:hover {
    transform: scale(1.05);
}

/* ===================== */
/* FORMULÁRIOS           */
/* ===================== */
.login-form,
#registration-form,
#forgot-password-form {
    background: var(--form-background);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
}

.login-form::before,
#registration-form::before,
#forgot-password-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.login-form h2,
#registration-form h2,
#forgot-password-form h2,
.registration-container > h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    text-transform: uppercase;
}

.login-form h2::after,
#registration-form h2::after,
#forgot-password-form h2::after,
.registration-container > h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
    text-align: left;
}

label {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================== */
/* CAMPOS DE INPUT       */
/* ===================== */
input[type="text"],
input[type="email"],
input[type="password"],
.form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #ffffff !important;
    background-color: #ffffff !important;
    transition: var(--transition);
    outline: none;
    font-weight: 500;
    color: #1f2937 !important; /* Força cor escura no texto */
    -webkit-text-fill-color: #1f2937 !important; /* iOS Safari fix */
    margin-bottom: 0;
    box-sizing: border-box;
    -webkit-appearance: none; /* Remove estilo nativo iOS */
    appearance: none;
}

/* ===================== */
/* WRAPPER SENHA - VER/OCULTAR */
/* ===================== */
.password-wrapper {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 24px;
}

.password-wrapper input {
    padding-right: 50px !important;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(239, 244, 250, 0.5) !important;
    border: none !important;
    cursor: pointer;
    padding: 10px !important;
    color: #1f2937 !important;
    transition: var(--transition);
    z-index: 10;
    width: 40px !important;
    height: 40px !important;
    min-width: unset !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
}

.toggle-password:hover {
    color: #7D3B56 !important;
    background: rgba(239, 244, 250, 0.8) !important;
}

.toggle-password i {
    font-size: 20px !important;
    pointer-events: none;
    color: inherit !important;
}

/* ===================== */
/* ALERTA SESSÃO EXPIRADA */
/* ===================== */
.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

/* Fix para autofill do iOS/Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(125, 59, 86, 0.1);
    background: #fff !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
.form-control:hover {
    border-color: var(--primary-light);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
.form-control::placeholder {
    color: var(--secondary-color);
    font-weight: 400;
}

/* ===================== */
/* BOTÕES                */
/* ===================== */
button,
.btn,
.btn-primary,
.btn-secondary,
a.btn-secondary {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(125,59,86,0.07);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

button:last-of-type,
.btn:last-of-type,
.btn-primary:last-of-type,
.btn-secondary:last-of-type,
a.btn-secondary:last-of-type {
    margin-bottom: 0;
}

button::before,
.btn::before,
.btn-primary::before,
.btn-secondary::before,
a.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover::before,
.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
a.btn-secondary:hover::before {
    left: 100%;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
a.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px) scale(1.04);
}

button:active,
.btn:active,
.btn-primary:active,
.btn-secondary:active,
a.btn-secondary:active {
    transform: translateY(0);
}

/* Botões secundários específicos */
#btn-validar-email,
#btn-reenviar-email,
#btn-verificar-codigo,
#btn-enviar-codigo,
#btn-alterar-senha {
    margin-top: 0.5rem;
}

/* ===================== */
/* ALERTAS E MENSAGENS   */
/* ===================== */
#error-message,
.alert,
#user-message.alert {
    display: none;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: slideIn 0.3s ease-out;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

#error-message.show,
.alert.show,
#user-message.alert.show {
    display: block;
}

/* Centraliza e estiliza alertas na tela de registro */
#user-message.alert,
#registration-form .alert,
#registration-form #error-message {
    display: none;
    margin: 0 auto 20px auto;
    max-width: 340px;
    text-align: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--error-color);
    padding: 14px 18px;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease-out;
}

#user-message.alert.show,
#registration-form .alert.show,
#registration-form #error-message.show {
    display: block;
}

#user-message.alert[style*="color: green"] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#user-message.alert[style*="color: #007bff"] {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ===================== */
/* LINKS E UTILITÁRIOS   */
/* ===================== */
.forgot-password,
#nao-sei-id {
    display: inline-block;
    text-align: left;
    margin-top: 6px;
    margin-left: 2px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 4px 0;
    border-radius: var(--border-radius-sm);
}

.forgot-password:hover,
#nao-sei-id:hover {
    color: var(--primary-dark);
    background: rgba(125, 59, 86, 0.05);
    text-decoration: underline;
}

/* ===================== */
/* ÍCONE DE SENHA        */
/* ===================== */
.toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    font-size: 1.2rem;
    user-select: none;
    transition: var(--transition);
    z-index: 10;
}
.toggle-password:hover {
    opacity: 0.7;
}
div[style*="position:relative"] {
    position: relative !important;
}

/* ===================== */
/* ANIMAÇÕES             */
/* ===================== */
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px);}
    100% { opacity: 1; transform: translateY(0);}
}
@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-20px);}
    100% { opacity: 1; transform: translateX(0);}
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translate(-50%, -60%) scale(0.9);}
    to { opacity: 1; transform: translate(-50%, -50%) scale(1);}
}
@keyframes pulse {
    0%, 100% { opacity: 1;}
    50% { opacity: 0.7;}
}
@keyframes shake {
    0%, 100% { transform: translateX(0);}
    25% { transform: translateX(-5px);}
    75% { transform: translateX(5px);}
}

/* ===================== */
/* ESTADOS DE LOADING    */
/* ===================== */
button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

input:disabled,
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

button.loading,
.btn.loading {
    animation: pulse 1.5s infinite;
}
button.loading::after,
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* ===================== */
/* RESPONSIVIDADE        */
/* ===================== */
@media (max-width: 768px) {
    .login-container,
    .registration-container {
        padding: 15px;
        max-width: 100vw;
    }
    .logo {
        max-width: 120px;
    }
    .login-form,
    #registration-form,
    #forgot-password-form {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .alert-container {
        max-width: 95%;
    }
    div[style*="display: flex"] {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    #nao-sei-id {
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .login-form,
    #registration-form,
    #forgot-password-form {
        padding: 1.5rem 1rem;
    }
    .logo {
        max-width: 100px;
    }
    .login-form h2,
    #registration-form h2,
    #forgot-password-form h2,
    .registration-container > h2 {
        font-size: 1.5em;
        margin-bottom: 18px;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    .form-control {
        padding: 12px 10px;
        font-size: 15px;
    }
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    a.btn-secondary {
        padding: 12px 10px;
        font-size: 15px;
    }
}

/* ===================== */
/* DARK MODE - DESABILITADO */
/* Forçar tema claro sempre para garantir legibilidade */
/* ===================== */
@media (prefers-color-scheme: dark) {
    /* Sobrescrever as variáveis para manter tema claro */
    :root {
        color-scheme: light only !important;
        --form-background: rgba(255, 255, 255, 0.98) !important;
        --border-color: #d1d5db !important;
        --background-overlay: rgba(255, 255, 255, 0.85) !important;
    }
    
    /* Forçar fundo claro no body */
    body {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
        color: #1f2937 !important;
    }
    
    /* Forçar fundo claro nos formulários */
    .login-form,
    #registration-form,
    #forgot-password-form {
        background: rgba(255, 255, 255, 0.98) !important;
        border-color: rgba(255,255,255,0.2) !important;
        color: #1f2937 !important;
    }
    
    /* Forçar cor escura nos títulos */
    .login-form h2,
    #registration-form h2,
    #forgot-password-form h2,
    .registration-container > h2 {
        color: var(--primary-color) !important;
    }
    
    /* Forçar fundo branco e texto escuro nos inputs */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    .form-control {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-color: #d1d5db !important;
        color: #1f2937 !important;
        -webkit-text-fill-color: #1f2937 !important;
    }
    
    /* Placeholder visível */
    input[type="text"]::placeholder,
    input[type="email"]::placeholder,
    input[type="password"]::placeholder,
    .form-control::placeholder {
        color: #6b7280 !important;
        -webkit-text-fill-color: #6b7280 !important;
    }
    
    /* Forçar autofill com fundo branco */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
        -webkit-text-fill-color: #1f2937 !important;
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    
    /* Manter botões com cores originais */
    .btn-secondary,
    a.btn-secondary {
        background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%) !important;
        color: #1f2937 !important;
        border-color: #d1d5db !important;
    }
    
    /* Links visíveis */
    .forgot-password,
    #nao-sei-id {
        color: var(--primary-color) !important;
    }
    
    .forgot-password:hover,
    #nao-sei-id:hover {
        color: var(--primary-dark) !important;
        background: rgba(125, 59, 86, 0.05) !important;
    }
    
    /* Forçar labels com cor escura */
    label {
        color: #1f2937 !important;
    }
    
    /* Forçar container com fundo claro */
    .login-container,
    .registration-container {
        background: rgba(255,255,255,0.7) !important;
        color: #1f2937 !important;
    }
    
    /* Alertas e mensagens */
    #error-message,
    .alert,
    #user-message.alert {
        color: var(--error-color) !important;
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    }
    
    /* Modal de alerta */
    #custom-alert-modal {
        background: #ffffff !important;
        color: #1f2937 !important;
    }
    
    #custom-alert-message {
        color: var(--primary-dark) !important;
    }
    
    /* Toggle password */
    .toggle-password {
        color: #1f2937 !important;
        background: rgba(239, 244, 250, 0.5) !important;
    }
    
    /* Auth wrapper e painéis */
    .auth-wrapper {
        background: #ffffff !important;
    }
    
    .pane-left {
        background: var(--primary, #7D3B56) !important;
        color: #ffffff !important;
    }
    
    .pane-left h2,
    .pane-left p {
        color: #ffffff !important;
    }
    
    .pane-right {
        background: #ffffff !important;
        color: #1f2937 !important;
    }
    
    .pane-right h2 {
        color: var(--primary-dark, #5D2A40) !important;
    }
    
    /* Botões de login */
    .btn-signin {
        color: #ffffff !important;
        background: transparent !important;
        border-color: #ffffff !important;
    }
    
    .btn-create {
        background: var(--primary, #7D3B56) !important;
        color: #ffffff !important;
    }
    
    /* Divider e textos */
    .divider {
        color: #6b7280 !important;
    }
    
    /* Social buttons */
    .social-btn {
        color: #6B7280 !important;
        border-color: #6B7280 !important;
        background: transparent !important;
    }
}

/* ===================== */
/* UTILITÁRIOS JS        */
/* ===================== */
.show { display: block !important; }
.hide { display: none !important; }
.fade-in { animation: slideInUp 0.4s ease-out; }
.shake { animation: shake 0.5s ease-in-out; }

/* ===================== */
/* SCROLLBAR             */
/* ===================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== Layout wrapper para login.html ===== */
.auth-wrapper {
    width: 980px;
    max-width: 95vw;
    background: var(--pane, #fff);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    margin: 0 auto;
}

.pane-left {
    background: var(--primary, #7D3B56);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}
.pane-left h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.pane-left p {
    font-size: .95rem;
    margin-bottom: 32px;
    text-align: center;
    opacity: .9;
    max-width: 260px;
}
.btn-signin {
    padding: 12px 38px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    letter-spacing: .5px;
}
.btn-signin:hover {
    background: #fff;
    color: var(--primary-dark, #5D2A40);
}

/* ===== Right → Create account ===== */
.pane-right {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}
.pane-right h2 {
    color: var(--primary-dark, #5D2A40);
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 4px;
}

.social-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}
.social-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--grey, #6B7280);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey, #6B7280);
    font-size: 18px;
    cursor: pointer;
    transition: .25s;
}
.social-btn:hover {
    background: var(--primary-light, #A05E7C);
    border-color: var(--primary-light, #A05E7C);
    color: #fff;
}

.divider {
    font-size: .8rem;
    color: var(--grey, #6B7280);
    text-align: center;
    margin-bottom: 6px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
}
.form input,
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.pane-right input,
.pane-right input[type="text"],
.pane-right input[type="email"],
.pane-right input[type="password"] {
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px !important;
    transition: border-color .25s;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    -webkit-opacity: 1 !important;
    opacity: 1 !important;
    -webkit-appearance: none;
    appearance: none;
}
.form input::placeholder,
.pane-right input::placeholder {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    opacity: 1 !important;
    -webkit-opacity: 1 !important;
}
.form input:focus,
.pane-right input:focus {
    border-color: var(--primary-light, #A05E7C);
    outline: none;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    background: #ffffff !important;
}
/* iOS autofill fix */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus,
.form input:-webkit-autofill:active,
.pane-right input:-webkit-autofill,
.pane-right input:-webkit-autofill:hover,
.pane-right input:-webkit-autofill:focus,
.pane-right input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
}
.btn-create {
    padding: 14px 0;
    border: none;
    border-radius: 25px;
    background: var(--primary, #7D3B56);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .5px;
    transition: .25s;
}
.btn-create:hover {
    background: var(--primary-dark, #5D2A40);
}

/* ====== Responsive (stack panes) ====== */
@media (max-width: 740px) {
    body {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background: #fff;
    }
    
    html {
        height: -webkit-fill-available;
    }
    
    .auth-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
    }
    .pane-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex-shrink: 0;
        background: var(--primary, #7D3B56);
        color: #fff;
        padding: 30px 24px 24px 24px;
        box-shadow: none;
        border-radius: 0;
    }
    .pane-left .logo {
        max-width: 120px;
        margin-bottom: 16px !important;
    }
    .pane-left h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    .pane-left p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    .pane-right {
        width: 100%;
        padding: 30px 24px 40px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        gap: 20px;
    }
    .pane-right h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        text-align: center;
    }
    .btn-signin {
        width: auto;
        padding: 12px 32px;
        margin: 0;
        font-size: 0.95em;
    }
    .form {
        max-width: 100%;
        gap: 16px;
    }
    .btn-create {
        padding: 14px 0;
        font-size: 15px;
    }
    .forgot-password {
        font-size: 13px;
        margin-top: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        margin: 0;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }
    .pane-left {
        padding: 24px 20px 20px 20px;
    }
    .pane-left .logo {
        max-width: 100px;
        margin-bottom: 12px !important;
    }
    .pane-left h2 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    .pane-left p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .pane-right {
        padding: 24px 20px 30px 20px;
    }
    .pane-right h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    .form {
        gap: 14px;
    }
    .btn-signin {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
    .forgot-password {
        font-size: 13px;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .pane-right {
        padding: 20px 10px;
    }
    .pane-right h2 {
        font-size: 1.3rem;
    }
    .form input {
        padding: 12px 14px;
        font-size: 14px;
    }
    .btn-create {
        padding: 12px 0;
        font-size: 14px;
    }
}

/* Modal de alerta centralizado */
#custom-alert-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(30, 16, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
#custom-alert-modal {
    background: var(--form-background, #fff);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(125,59,86,0.18), 0 1.5px 6px rgba(0,0,0,0.07);
    padding: 36px 28px 24px 28px;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    animation: slideUp 0.3s;
}
#custom-alert-message {
    font-size: 1.1em;
    color: var(--primary-dark, #5D2A40);
    margin-bottom: 10px;
    word-break: break-word;
}
#custom-alert-actions button {
    min-width: 100px;
    padding: 10px 0;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 2px;
    box-sizing: border-box;
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}

/* Botão mobile-only */
.mobile-only {
    display: none !important;
}

@media (max-width: 740px) {
    .mobile-only {
        display: block !important;
        background: #a05e7c;
        color: #fff;
        width: 100%;
        margin: 20px 0 0 0;
        text-align: center;
        font-size: 1em;
    }
}

.mobile-only {
    display: block !important;
    background: #a05e7c;
    color: #fff;
}