:root {
    --primary: #b50000;
    --primary-hover: #8f0000;
    --bg-light: #f4f6f9;
    --card-light: rgb(255 255 255 / 51%);
    --text-light: #212529;
    --muted-light: #6c757d;
    --border-light: #d1d1d6;
    --bg-dark: #000000;
    --card-dark: rgba(28, 28, 30, 0.85);
    --text-dark: #f1f1f1;
    --muted-dark: #a0a0a0;
    --input-dark-bg: rgba(255, 255, 255, 0.05);
    --input-dark-border: #3a3a3c;
    --ease-spring: cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 6px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 10px rgba(181, 0, 0, 0.25)
}
html {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f2f5 0, #dbeafe 100%);
    color: var(--text-light);
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background .5s var(--ease-spring), color .3s ease;
}
/* ... RESTO DO CSS MANTIDO ... */
body.dark {
    background: linear-gradient(135deg, #000 0, #1c1c1e 100%);
    color: var(--text-dark)
}
.bg-shape {
    position: absolute;
    background: var(--primary);
    opacity: .08;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    animation: 25s ease-in-out infinite float
}
.shape-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px
}
.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
    background: #ff4d4d
}
@keyframes fadeInUpSubtle {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        /* Começa um pouco abaixo e levemente menor */
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        /* Termina na posição original */
    }
}
.auth-card {
    background: var(--card-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .05);
    position: relative;
    opacity: 0;
    animation: fadeInUpSubtle 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* Opcional: Efeito cascata para os itens dentro do card (Logo, Texto, Form) */
.auth-card>* {
    opacity: 0;
    animation: fadeInUpSubtle 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* Atrasos para criar o efeito de cascata sequencial */
.auth-card .auth-header {
    animation-delay: 0.1s;
}
.auth-card form {
    animation-delay: 0.2s;
}
.auth-card .text-center {
    animation-delay: 0.3s;
}
.btn-switch-premium,
.theme-toggle {
    backdrop-filter: blur(10px);
    display: flex
}
body.dark .auth-card {
    background: var(--card-dark);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .5)
}
.auth-header h3 {
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: .3rem
}
.form-control,
.input-group-text {
    background-color: transparent;
    border: 1px solid var(--border-light);
    padding: 14px;
    transition: .3s
}
.input-group-text {
    border-right: none;
    color: var(--muted-light);
    border-radius: 14px 0 0 14px
}
.form-control {
    border-left: none;
    font-size: 1rem;
    border-radius: 0 14px 14px 0
}
.form-control:focus,
.input-group:focus-within .input-group-text {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(181, 0, 0, .1);
    color: var(--primary);
    background: rgba(181, 0, 0, .02);
    outline: 0
}
body.dark .form-control,
body.dark .input-group-text {
    border-color: var(--input-dark-border);
    color: #fff;
    background: var(--input-dark-bg)
}
body.dark .form-control:focus,
body.dark .input-group:focus-within .input-group-text {
    border-color: var(--primary);
    background: rgba(181, 0, 0, .1)
}
.btn-danger {
    background-color: var(--primary);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .3s var(--ease-spring);
    position: relative;
    overflow: hidden
}
.btn-danger:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: var(--shadow-hover)
}
.btn-danger:active {
    transform: scale(.98)
}
.password-toggle-icon,
.theme-toggle {
    position: absolute;
    cursor: pointer;
    transition: .3s;
    z-index: 20
}
.theme-toggle {
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(0, 0, 0, .05);
    color: var(--text-light)
}
.theme-toggle:hover,
.user-avatar-lg,
.user-profile-card:hover {
    background: rgba(255, 255, 255, .8)
}
body.dark .theme-toggle {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .1)
}
.password-toggle-icon {
    right: 15px;
    top: 42px;
    color: #999;
    z-index: 5
}
.btn-switch-premium:hover .switch-action,
.password-toggle-icon:hover {
    color: var(--primary)
}
.user-avatar-lg {
    width: 120px;
    height: 120px;
    background: transparent !important;
    border-radius: 50%;
    margin: 0 auto 0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #0000000f;
    margin-bottom: 15px;;
}
body.dark .user-avatar-lg {
    background: #2c2c2e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3)
}
.user-avatar-lg::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.user-avatar-lg.scanning::before {
    opacity: 1;
    animation: rotateScan 2s linear infinite;
    border-top-color: transparent;
    border-left-color: transparent;
}
@keyframes rotateScan {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.user-avatar-lg::after {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    z-index: -1
}
.user-avatar-lg.scanning::after {
    animation: ripple-scan 1.5s infinite var(--ease-spring)
}
.user-avatar-lg.scanning img {
    animation: 1.5s ease-in-out infinite pulse-avatar
}
.user-avatar-lg.success-scan {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1) !important;
    transform: scale(1.1);
}
.user-avatar-lg.error-scan {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1) !important;
    animation: hapticShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}
@keyframes hapticShake {
    10%, 90% {
        transform: translate3d(-2px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(4px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-6px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(6px, 0, 0);
    }
}
.user-avatar-lg img {
    transition: filter 0.3s ease;
    filter: brightness(0);
}
body.dark .user-avatar-lg img {
    filter: brightness(0) invert(1);
}
@keyframes ripple-scan {
    0% {
        transform: scale(1);
        opacity: .8
    }
    100% {
        transform: scale(1.4);
        opacity: 0
    }
}
@keyframes pulse-avatar {
    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        transform: scale(.95);
        opacity: .8
    }
}
@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0)
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0)
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0)
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0)
    }
}
.shake-animation {
    /* animation: hapticShake 0.4s cubic-bezier(.36, .07, .19, .97) both; */
}
.user-avatar-lg i {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.1));
}
.quick-login-wrapper {
    margin-bottom: 25px;
    width: 100%
}
.user-profile-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / 54%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: all .3s var(--ease-spring)
}
.user-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    border-color: rgba(181, 0, 0, .1)
}
body.dark .user-profile-card {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .08)
}
body.dark .user-profile-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2)
}
.avatar-wrapper-premium {
    position: relative;
    margin-right: 15px
}
.avatar-wrapper-premium img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    border: 2px solid #fff
}
body.dark .avatar-wrapper-premium img {
    border-color: #333
}
.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}
body.dark .status-indicator {
    border-color: #2c2c2e
}
.user-info-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center
}
.welcome-label {
    font-size: .75rem;
    color: var(--muted-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 2px
}
.user-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-light);
    line-height: 1.2
}
.user-email-masked {
    font-size: .8rem;
    color: var(--muted-light);
    opacity: .8
}
body.dark .switch-action,
body.dark .toast-title,
body.dark .user-name {
    color: #fff
}
body.dark .welcome-label {
    color: #888
}
.switch-account-container {
    display: flex;
    justify-content: center;
    margin-top: -5px;
    position: relative;
    z-index: 5
}
.btn-switch-premium {
    background: rgba(255, 255, 255, .4);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50px;
    padding: 8px 20px 8px 24px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .4s var(--ease-spring);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .03);
    max-width: 100%
}
.switch-label {
    font-size: .85rem;
    color: var(--muted-light);
    font-weight: 400
}
.switch-action {
    font-size: .85rem;
    color: var(--text-light);
    font-weight: 700;
    transition: color .3s
}
.switch-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, .05);
    border-radius: 50%;
    color: var(--muted-light);
    font-size: .75rem;
    transition: .3s cubic-bezier(.34, 1.56, .64, 1)
}
.btn-switch-premium:hover {
    background: #fff;
    border-color: rgba(181, 0, 0, .2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08)
}
.btn-switch-premium:hover .switch-icon-box {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px) rotate(-10deg)
}
body.dark .btn-switch-premium {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1)
}
body.dark .switch-icon-box {
    background: rgba(255, 255, 255, .1);
    color: #ccc
}
body.dark .btn-switch-premium:hover {
    background: #2c2c2e;
    border-color: var(--primary)
}
.ios-toast-popup {
    background: rgba(255, 255, 255, .95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .05) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 360px !important;
    max-width: 400px !important
}
body.dark .ios-toast-popup {
    background: rgba(44, 44, 46, .95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1) !important
}
.ios-toast-popup .swal2-html-container {
    margin: 0 !important;
    padding: 16px !important;
    width: 100% !important;
    text-align: left !important;
    overflow: visible !important
}
.swal2-popup.ios-modal {
    border-radius: 28px !important;
    background: rgba(255, 255, 255, .9) !important;
    backdrop-filter: blur(20px) !important
}
body.dark .swal2-popup.ios-modal {
    background: rgba(30, 30, 30, .9) !important;
    border: 1px solid #333
}
.visually-hidden-custom {
    position: absolute !important;
    opacity: 0;
    pointer-events: none;
    transform: scale(.9);
    transition: .3s
}
.toast-layout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%
}
.toast-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 1.3rem
}
.toast-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3
}
.toast-title {
    font-weight: 600;
    font-size: .95rem;
    color: #1c1c1e;
    margin-bottom: 2px;
    letter-spacing: -.3px
}
.toast-msg {
    font-size: .85rem;
    color: #8e8e93;
    font-weight: 400
}
body.dark .toast-msg {
    color: #aeaeb2
}
.bg-icon-success {
    background: rgba(52, 199, 89, .15);
    color: #34c759
}
.bg-icon-error {
    background: rgba(255, 59, 48, .15);
    color: #ff3b30
}
.bg-icon-warning {
    background: rgba(255, 204, 0, .15);
    color: #fc0
}
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark slate semi-transparente */
    backdrop-filter: blur(12px);
    /* Efeito de desfoque moderno */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
}
.overlay-content {
    text-align: center;
    max-width: 450px;
    padding: 20px;
}
.shield-container {
    position: relative;
    font-size: 5rem;
    color: #ef4444;
    margin-bottom: 2rem;
    display: inline-block;
}
.shield-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.lockdown-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.lockdown-msg {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.timer-wrapper {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timer-wrapper small {
    font-size: 1rem;
    color: #94a3b8;
    letter-spacing: 3px;
}
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 2rem 0;
    overflow: hidden;
}
.progress-fill {
    width: 100%;
    height: 100%;
    background: #ef4444;
    transition: width 1s linear;
}
.btn-unlock {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-unlock:not(:disabled) {
    background: #ef4444;
    color: white;
    cursor: pointer;
}
.btn-unlock:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.4);
}