/* public/css/auth.css - MZOO Modern Glassmorphic Authentication */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.35);
}

/* Fundo fixo com imagem oficial MZOO fundo.png */
body.login-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-image: url('../images/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Botão de Alternância de Tema no canto superior direito */
#theme-toggler-container {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 1050;
}

.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: rotate(20deg) scale(1.08);
}

[data-bs-theme="light"] .btn-theme-toggle {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Container do Formulário */
.auth-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    z-index: 10;
}

/* Card Vidro Fosco (Glassmorphism) */
.login-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    color: #f8fafc;
    animation: slideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="light"] .login-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    color: #1e293b;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo e Cabeçalho */
.login-logo {
    max-height: 85px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.03);
}

.login-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

[data-bs-theme="light"] .login-title {
    color: #0f172a;
}

.login-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

[data-bs-theme="light"] .login-subtitle {
    color: #64748b;
}

/* Campos de Entrada Translúcidos */
.form-label-auth {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.4rem;
    margin-left: 0.25rem;
    display: block;
}

[data-bs-theme="light"] .form-label-auth {
    color: #475569;
}

.input-group-auth {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

[data-bs-theme="light"] .input-group-auth {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
}

.input-group-auth:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

[data-bs-theme="light"] .input-group-auth:focus-within {
    background: #ffffff;
    border-color: var(--primary);
}

.input-group-auth .input-group-text {
    border: none;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 1rem;
    padding-right: 0.5rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

[data-bs-theme="light"] .input-group-auth .input-group-text {
    color: #64748b;
}

.input-group-auth .form-control {
    border: none;
    background: transparent !important;
    font-size: 0.975rem;
    padding: 0.9rem 0.75rem;
    color: #fff !important;
    box-shadow: none !important;
    width: 1%;
    flex: 1 1 auto;
    min-height: 48px;
}

.input-group-auth .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

[data-bs-theme="light"] .input-group-auth .form-control {
    color: #0f172a !important;
}

[data-bs-theme="light"] .input-group-auth .form-control::placeholder {
    color: #94a3b8;
}

.btn-eye {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-eye:hover {
    color: #fff;
}

[data-bs-theme="light"] .btn-eye {
    color: #94a3b8;
}

[data-bs-theme="light"] .btn-eye:hover {
    color: var(--primary);
}

/* Botão de Ação Principal */
.btn-auth-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.95rem 1.5rem;
    font-weight: 700;
    width: 100%;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.45);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.55);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

/* Alertas com Glassmorphism */
.alert-glass {
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.alert-glass-danger {
    background: rgba(220, 38, 38, 0.25);
    color: #fecaca;
    border-color: rgba(220, 38, 38, 0.4);
}

[data-bs-theme="light"] .alert-glass-danger {
    background: rgba(254, 226, 226, 0.9);
    color: #b91c1c;
    border-color: #fca5a5;
}

.alert-glass-warning {
    background: rgba(217, 119, 6, 0.25);
    color: #fef3c7;
    border-color: rgba(217, 119, 6, 0.4);
}

/* Rodapé */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.825rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .auth-footer {
    color: rgba(30, 41, 59, 0.85);
    text-shadow: none;
}

/* Recuperação de Senha */
.card-recuperacao {
    border: none;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    padding: 2.25rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    animation: slideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="light"] .card-recuperacao {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.08);
}