@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

/* Variables and colors - LIGHT THEME */
:root {
    --primary-color: #ffffff;
    --primary-light: #f5f5f5;
    --primary-dark: #e0e0e0;
    --secondary-color: #ff6b00;
    --secondary-light: #ff9800;
    --secondary-dark: #e65100;
    --text-on-primary: #333333;
    --text-on-secondary: #ffffff;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --neutral-color: #9e9e9e;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --dark-gray: #333333;
    --ring-color-1: #ff6b00;
    --ring-color-2: #ffd400;
    --ring-color-3: #ff9800;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS AND TRANSITIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; height: 0; margin: 0; padding: 0; border: 0; }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* NEW ANIMATIONS FOR TRANSITIONS */
@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.7);
        opacity: 0;
    }
}

@keyframes fadeOutRotate {
    from {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(20deg);
    }
}

@keyframes spinFadeIn {
    from {
        transform: rotate(-180deg) scale(0.3);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 5px rgba(255, 212, 0, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 212, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 212, 0, 0);
    }
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate2 {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes spinner {
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes loadingDots {
    0%, 100% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75% {
        content: "...";
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
}

/* Prevent browser text auto-scaling on large displays */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (min-width: 1600px) {
    html { font-size: 15px; }
}

@media (min-width: 2000px) {
    html { font-size: 14px; }
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    color: var(--dark-gray);
    margin: 0;
    padding: 20px 0;
    line-height: 1.3;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease-out;
    transition: background 0.5s ease;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollbar always visible to prevent layout shift */
html {
    overflow-y: scroll;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    background-color: #f5f5f5;
}

/* Register page needs more height for scrolling */
body.register-page {
    height: auto;
    min-height: 100vh;
}

/* Page transition states */
body.page-exit {
    background: var(--primary-color);
    transition: background 0.8s ease;
}

body.page-enter .login {
    animation: scaleIn 0.5s ease-in-out forwards;
}

body.page-enter .ring {
    animation: fadeIn 1.2s ease-out;
}

/* Special style for register page to allow scrolling */
body.register-page {
    height: auto; /* Allow content to determine height */
    min-height: 100vh;
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 20px 0; /* Add some padding for better spacing */
}

/* ============================================
   ELEGANT LOADING SCREEN - Inspirado em Brenda
   ============================================ */

/* Transição de fundo escuro → claro */
body.transitioning-to-dashboard {
    background: linear-gradient(135deg, #111111 0%, #f5f5f5 100%);
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay de transição REDESENHADO */
.transition-overlay {
    position: fixed;
    inset: 0;
    background: #f5f5f5; /* Fundo claro do dashboard */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
}

.transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Container principal do loader */
.loading-container {
    text-align: center;
    position: relative;
}

/* Container do spinner com imagem central */
.loading-spinner-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner circular externo */
.loading-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 107, 0, 0.1);
    border-top: 4px solid #ff6b00;
    border-radius: 50%;
    animation: spin-smooth 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Spinner circular interno (duplo) */
.loading-spinner-2 {
    position: absolute;
    width: 85%;
    height: 85%;
    border: 3px solid rgba(255, 212, 0, 0.1);
    border-bottom: 3px solid #ffd400;
    border-radius: 50%;
    animation: spin-smooth 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

/* Animação de rotação suave */
@keyframes spin-smooth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Imagem central (mini-icon-color.png) */
.loading-icon {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
    animation: pulse-icon 2s ease-in-out infinite;
    background: white; /* Fundo branco atrás do ícone */
    padding: 15px;
}

/* Animação de pulse na imagem do spinner */
@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 12px 40px rgba(255, 212, 0, 0.5);
        filter: brightness(1.1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(255, 107, 0, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Texto de loading */
.loading-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #333333;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    animation: fadeInOut-text 2s ease-in-out infinite;
}

/* Fade in/out no texto */
@keyframes fadeInOut-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Animação dos dots (...) */
.dot-animation::after {
    content: "";
    animation: loadingDots 1.5s infinite;
    display: inline-block;
    width: 20px;
    text-align: left;
}

@keyframes loadingDots {
    0%, 100% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
}

/* Responsivo */
@media (max-width: 480px) {
    .loading-spinner-container {
        width: 160px;
        height: 160px;
    }

    .loading-icon {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .loading-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATED LOGIN LOGO SPINNER
   ============================================ */

.login-logo-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.login-logo-spinner.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    pointer-events: none;
    display: none; /* fully remove to prevent overlay issues */
}

.spinner-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 107, 0, 0.1);
    border-top: 4px solid #ff6b00;
    border-radius: 50%;
    animation: spin-smooth 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-inner {
    position: absolute;
    width: 85%;
    height: 85%;
    border: 3px solid rgba(255, 212, 0, 0.1);
    border-bottom: 3px solid #ffd400;
    border-radius: 50%;
    animation: spin-smooth 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

.spinner-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
    animation: pulse-icon 2s ease-in-out infinite;
    background: white;
    padding: 10px;
}

/* Alerta de manutenção */
.maintenance-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    animation: slideInRight 0.5s ease-out forwards;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.maintenance-alert:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(-3px);
}

.maintenance-alert strong {
    font-weight: 600;
}

.alert-icon {
    margin-right: 6px;
    animation: bounce 2s infinite;
}

.maintenance-details {
    font-size: 13px;
    display: block;
}

.backto-maintenance {
    color: #856404;
    font-size: 13px;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.backto-maintenance::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #856404;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.backto-maintenance:hover {
    text-decoration: none;
}

.backto-maintenance:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 212, 0, 0.08) 0%, transparent 70%);
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Animated particles */
@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Login container - MODERN LIGHT THEME */
.login {
    width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    padding: 45px 35px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.login.gsap-ready {
    opacity: 0;
    transform: scale(0.9);
}

.login.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Garante que elementos dentro do form visível fiquem visíveis */
.login.visible .inputBx,
.login.visible .logo-img,
.login.visible h2,
.login.visible .remember-forgot,
.login.visible .links,
.login.visible .credits {
    opacity: 1 !important;
    transform: none !important;
}

.logo-img {
    position: relative;
    height: 100px;
    width: 100px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.2));
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25), 0 0 0 1px rgba(255, 107, 0, 0.1);
    animation: glow-pulse 3s ease-in-out infinite;
    display: block;
}

.logo-img:hover {
    transform: translateY(-8px) scale(1.05) rotate(5deg);
    box-shadow: 0 16px 48px rgba(255, 107, 0, 0.4), 0 0 0 2px rgba(255, 107, 0, 0.2);
    animation: none;
}

.login h2 {
    font-size: 1.8em;
    color: #2d2d2d;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--ring-color-1), var(--ring-color-2));
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    animation: pulse-width 2s ease-in-out infinite;
}

@keyframes pulse-width {
    0%, 100% {
        transform: translateX(-50%) scaleX(0);
    }
    50% {
        transform: translateX(-50%) scaleX(0.3);
    }
}

.login h2:hover::after {
    transform: translateX(-50%) scaleX(1);
    animation: none;
}

/* Form elements */
#loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.inputBx {
    position: relative;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inputBx:hover {
    transform: translateY(-3px);
}

.inputBx input {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 2px solid #d8d8d8;
    border-radius: 12px;
    font-size: 15px;
    color: #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) inset;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    font-weight: 500;
}

.inputBx input::placeholder {
    color: #aaaaaa;
    font-weight: 400;
}

.inputBx input:focus {
    border-color: #ff6b00;
    box-shadow:
        0 0 0 4px rgba(255, 107, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.04) inset,
        0 4px 12px rgba(255, 107, 0, 0.08);
    background: #ffffff;
    transform: translateY(-2px);
}

.inputBx input[type="submit"] {
    background: linear-gradient(135deg, var(--ring-color-1), var(--ring-color-2));
    background-size: 200% 200%;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-on-secondary);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    animation: shimmer 3s ease infinite;
}

.inputBx input[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.inputBx input[type="submit"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 212, 0, 0.6);
    background-position: right center;
    animation: none;
}

.inputBx input[type="submit"]:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.inputBx input[type="submit"]:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.inputBx input[type="submit"]:active {
    transform: translateY(0);
}

.inputBx input[type="submit"].loading,
.inputBx input[type="submit"]:disabled {
    opacity: 0.8;
    cursor: wait;
    animation: none;
    box-shadow: none;
    transform: none;
}

/* Success state for submit button */
.inputBx input[type="submit"].btn-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
    animation: successPulse 0.6s ease;
    cursor: default;
    padding-right: 35px;
    position: relative;
}

.inputBx input[type="submit"].btn-success:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
}

/* Checkmark container - thin elegant check */
.inputBx:has(input[type="submit"].btn-success)::after {
    content: '';
    position: absolute;
    right: calc(50% - 55px);
    top: 50%;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg) scale(0);
    z-index: 10;
    animation: checkPop 0.4s ease 0.1s forwards;
    pointer-events: none;
}

@keyframes checkPop {
    0% {
        transform: translateY(-60%) rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-60%) rotate(45deg) scale(1.3);
    }
    100% {
        transform: translateY(-60%) rotate(45deg) scale(1);
        opacity: 1;
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* Remember me and links */
.remember-forgot {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-top: -5px;
    margin-bottom: -5px;
}

.remember-me {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.remember-me:hover {
    transform: translateY(-2px);
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    background: #fafafa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    animation: scaleIn 0.2s ease;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: fadeIn 0.2s ease;
}

.remember-me label {
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.remember-me:hover label {
    color: #ff6b00;
}

.links {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 100;
}

.links a {
    color: #777777;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    padding: 8px 12px;
    font-weight: 600;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block;
}

.links a:hover {
    color: #ff6b00;
    transform: translateY(-2px);
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(255, 212, 0, 0.5);
    transform: translateY(-2px);
}

.links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Error and success messages - CORRIGIDO ESPAÇO EXCESSIVO */
.error-message,
.success-message {
    text-align: center;
    font-size: 14px;
    width: 100%;
    z-index: 2;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    line-height: 1.0;
    padding: 0;
    margin: 0;
}

/* Adiciona espaçamento apenas quando há conteúdo */
.error-message:not(:empty),
.success-message:not(:empty) {
    padding: 8px 0;
    margin: 5px 0;
}

.error-message {
    color: var(--error-color);
}

.success-message {
    color: var(--success-color);
}

/* Credits section */
.credits {
    margin-top: 20px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 12px;
    font-size: 12px;
    color: #888888;
    text-align: center;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.credits:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
    transform: translateY(-3px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12);
}

.app-version {
    font-weight: 700;
    margin-bottom: 6px;
    color: #ff6b00;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.credits:hover .app-version {
    transform: scale(1.05);
}

.credits:hover .app-version {
    transform: scale(1.05);
}

.developer-info {
    margin-top: 8px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.developer-info a {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.developer-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.developer-info a:hover {
    text-shadow: 0 0 5px rgba(255, 212, 0, 0.5);
}

.developer-info a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Modal para atualização de dados */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 450px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 30px;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.5s ease-out;
}

.modal-overlay.show .modal-container {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.modal-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 20%;
    transform: scaleX(0.7);
    transition: transform 0.3s ease;
}

.modal-title:hover:after {
    transform: scaleX(1);
}

.modal-subtitle {
    color: var(--medium-gray);
    font-size: 16px;
    margin-top: 5px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    text-align: center;
}

/* Modal de escolha de versao */
.version-choice-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-remember {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--medium-gray);
    user-select: none;
}

.choice-remember input {
    width: 16px;
    height: 16px;
    accent-color: #ff6b00;
}

.modal-container .modal-subtitle {
    font-size: 14px;
    line-height: 1.4;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #2d2d2d;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary i {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.35);
}

.btn-secondary:hover i {
    transform: translateX(-2px);
}

/* Modal form styles */
.input-group {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.input-group:hover {
    transform: translateY(-2px);
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d2d2d;
    font-size: 14px;
    transition: all 0.2s ease;
}

.input-group:hover label {
    color: #ff6b00;
}

/* Mantém a cor original quando o input está desabilitado/readonly */
.input-group:has(input:disabled) label,
.input-group:has(input:read-only) label,
.input-group:has(input.input-locked) label {
    color: #666666;
}

.input-group:has(input:disabled):hover label,
.input-group:has(input:read-only):hover label,
.input-group:has(input.input-locked):hover label {
    color: #666666;
}

.required-field::after {
    content: "*";
    color: var(--error-color);
    margin-left: 4px;
    animation: fadeIn 0.3s ease;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b00 !important;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.input-field:hover i {
    transform: translateY(-50%) scale(1.1);
}

.input-field input {
    width: 100%;
    padding: 13px 13px 13px 40px;
    border: 2px solid #d8d8d8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8f8f8;
    color: #2d2d2d;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) inset;
    font-weight: 500;
}

.input-field input:read-only,
.input-field input.input-locked {
    background-color: #e8e8e8 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
}

.input-field input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow:
        0 0 0 4px rgba(255, 107, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.04) inset,
        0 4px 12px rgba(255, 107, 0, 0.08);
    background-color: #ffffff;
    transform: translateY(-2px);
}

/* Correção 1: Input bloqueado com cores claras */
.input-locked {
    background-color: #e8e8e8 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
}

/* Correção 2: Garantir que inputs readonly também tenham a cor correta */
.input-field input:read-only,
.input-field input.input-locked {
    background-color: #e8e8e8 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
}

/* Correção 3: Evitar mudança de cor no hover de inputs bloqueados */
.input-field:has(input:disabled):hover i,
.input-field:has(input:read-only):hover i,
.input-field:has(input.input-locked):hover i {
    transform: translateY(-50%) scale(1);
}

/* Correção 4: Manter label original quando input está bloqueado */
.input-group:has(input:disabled) label,
.input-group:has(input:read-only) label,
.input-group:has(input.input-locked) label {
    color: #666666;
}

.input-group:has(input:disabled):hover label,
.input-group:has(input:read-only):hover label,
.input-group:has(input.input-locked):hover label {
    color: #666666;
}

.info-text {
    font-size: 13px;
    color: var(--medium-gray);
    margin-top: 15px;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.info-text i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.input-group:hover .info-text {
    color: var(--dark-gray);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b00, #ffd400);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    animation: shimmer 3s ease infinite;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.btn-login i {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 212, 0, 0.6);
    background-position: right center;
    animation: none;
}

.btn-login:hover i {
    transform: translateX(-3px);
}

.btn-login:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.btn-login:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-login.loading {
    opacity: 0.8;
    cursor: wait;
    animation: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--medium-gray);
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--error-color);
    background-color: rgba(244, 67, 54, 0.1);
    transform: rotate(90deg);
}

/* Estilos adicionais específicos para o registro */
.login-container {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    z-index: 2;
    animation: scaleIn 0.5s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 107, 0, 0.1);
}

.login-title {
    font-size: 26px;
    color: #ff6b00;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00, #ffd400);
    border-radius: 2px;
    transform: scaleX(0.7);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-title:hover::after {
    transform: scaleX(1);
}

.login-subtitle {
    font-size: 14px;
    color: #888888;
    font-weight: 500;
    color: var(--medium-gray);
}

.login-header {
    margin-bottom: 25px;
    text-align: center;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

.login-wrapper .logo-img {
    height: 120px;
    width: 120px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25), 0 0 0 1px rgba(255, 107, 0, 0.1);
    display: block;
}

/* Adjust ring positioning for register page */
.register-page .ring {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Adjust container sizing for register page */
.register-page .login-container {
    margin: 20px auto;
    position: relative;
    z-index: 2;
}

/* Make sure the register form has appropriate spacing */
.register-page .login-wrapper {
    padding: 20px 10px;
}

/* Estilos específicos para o register.html */
.multi-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.multi-input-row .input-group {
    flex: 1;
    min-width: 140px;
}

select.form-control {
    width: 100%;
    padding: 13px 15px 13px 40px;
    border: 2px solid #d8d8d8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8f8f8;
    color: #2d2d2d;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) inset;
    font-weight: 500;
}

select.form-control:focus {
    border-color: #ff6b00;
    outline: none;
    box-shadow:
        0 0 0 4px rgba(255, 107, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.04) inset,
        0 4px 12px rgba(255, 107, 0, 0.08);
    background-color: #ffffff;
    transform: translateY(-2px);
}

select.form-control option {
    background-color: var(--card-bg);
    color: var(--dark-gray);
}

.avatar-upload {
    margin: 15px 0;
    text-align: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto;
    position: relative;
    border: 2px solid #d0d0d0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.avatar-preview:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-preview:hover img {
    transform: scale(1.1);
}

.avatar-preview .placeholder {
    color: var(--neutral-color);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-preview:hover .placeholder {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.avatar-upload-btn {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-upload-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.avatar-upload-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-on-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 0, 0.3);
}

.avatar-upload-btn:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload-title {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.avatar-upload:hover .avatar-upload-title {
    color: var(--dark-gray);
}

.input-locked {
    background-color: #e8e8e8 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    border-color: #d0d0d0 !important;
}

.input-field.searching::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    padding: 5px;
    font-weight: 500;
}

.back-to-login a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.back-to-login a:hover {
    color: var(--secondary-color);
}

.back-to-login a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.confirmation-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.confirmation-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    animation: slideIn 0.4s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-icon {
    width: 70px;
    height: 70px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.confirmation-content:hover .confirmation-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.confirmation-icon i {
    color: white;
    font-size: 36px;
}

.confirmation-title {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.confirmation-message {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 25px;
}

.confirmation-button {
    background: linear-gradient(45deg, var(--ring-color-2), var(--ring-color-1));
    color: var(--text-on-secondary);
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.confirmation-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.confirmation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 212, 0, 0.3);
}

.confirmation-button:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.confirmation-button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spinner {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Password Requirements and Validation */
.password-requirements {
    margin-bottom: 20px;
    background: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.password-requirements h4 {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.password-requirements h4 i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: var(--medium-gray);
    font-size: 13px;
    padding: 5px 0;
    transition: all 0.2s ease;
}

.password-requirements li.valid {
    color: var(--success-color);
    font-weight: 500;
}

.password-requirements li i {
    margin-right: 8px;
}

.password-strength {
    margin-top: 8px;
}

.password-strength-meter {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-meter.strength-weak {
    background: linear-gradient(90deg, var(--error-color) 20%, var(--border-color) 20%);
}

.password-strength-meter.strength-medium {
    background: linear-gradient(90deg, #ff9800 40%, var(--border-color) 40%);
}

.password-strength-meter.strength-good {
    background: linear-gradient(90deg, #2196f3 60%, var(--border-color) 60%);
}

.password-strength-meter.strength-strong {
    background: var(--success-color);
}

.password-match {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.password-match.match {
    color: var(--success-color);
}

.password-match.no-match {
    color: var(--error-color);
}

.password-match i {
    margin-right: 5px;
}

/* Token Error Page */
.token-error {
    text-align: center;
    padding: 30px 20px;
}

.token-error i {
    font-size: 4rem;
    color: var(--error-color);
    margin-bottom: 20px;
}

.token-error p {
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0;
}

/* Responsividade - AJUSTADA PARA MANTER CONSISTÊNCIA ENTRE 1014px E 1126px */

/* MUDANÇA PRINCIPAL: Media query alterada de 768px para 600px */
/* Isso garante que resoluções como 1014px e 1126px tenham o mesmo layout */
@media (max-width: 600px) {
    body {
        padding: 0;
    }
    
    .ring {
        width: min(70vw, 350px);
        height: min(70vw, 350px);
    }
    
    .login {
        width: 280px;
        padding: 15px;
    }
    
    .logo-img {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .multi-input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .multi-input-row .input-group {
        width: 100%;
    }
    
    .login-container {
        padding: 20px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-logo-spinner {
        width: 100px;
        height: 100px;
    }

    .spinner-icon {
        width: 50px;
        height: 50px;
        padding: 8px;
    }

    .login {
        width: 90%;
        max-width: 340px;
        padding: 30px 20px;
        gap: 15px;
    }

    .logo-img {
        height: 80px;
        width: 80px;
        margin-bottom: 15px;
        padding: 14px;
    }

    .login h2 {
        font-size: 1.6em;
    }

    .inputBx input {
        padding: 13px 18px;
        font-size: 14px;
    }

    .links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .links a {
        font-size: 13px;
    }

    .credits {
        padding: 12px 16px;
        margin-top: 15px;
        font-size: 11px;
    }

    .app-version {
        font-size: 12px;
    }
    
    .modal-container {
        padding: 15px;
    }
    
    .confirmation-content {
        padding: 15px;
    }
    
    .confirmation-icon {
        width: 50px;
        height: 50px;
    }
    
    .confirmation-title {
        font-size: 18px;
    }
    
    .confirmation-message {
        font-size: 14px;
    }
    
    .btn-login {
        padding: 13px;
        font-size: 15px;
    }

    .input-field i {
        font-size: 14px;
    }

    .input-field input {
        padding: 11px 11px 11px 38px;
        font-size: 14px;
    }

    .login-container {
        max-width: 90%;
        padding: 20px;
    }

    .login-wrapper .logo-img {
        height: 90px;
        width: 90px;
        padding: 16px;
    }
}



    /* ============================================
       Responsive adjustments for very large screens
       Keep login view compact without scaling up
       ============================================ */
    @media (min-width: 1600px) {
        .login {
            width: 340px;
            padding: 36px 28px;
        }
        .logo-img {
            width: 90px;
            height: 90px;
            padding: 14px;
        }
        .login h2 {
            font-size: 1.6em;
        }
        .inputBx input {
            font-size: 14px;
            padding: 13px 18px;
        }
    }

    @media (min-width: 2000px) {
        .login {
            width: 320px;
            padding: 32px 24px;
        }
        .logo-img {
            width: 80px;
            height: 80px;
            padding: 12px;
        }
        .login h2 {
            font-size: 1.5em;
        }
        .inputBx input {
            font-size: 13px;
            padding: 12px 16px;
        }
    }


/* ============================================
   Global zoom for big/short/mobile screens
   Using CSS zoom instead of transform (keeps clicks working)
   ============================================ */

/* Wide displays: subtle zoom out */
@media (min-width: 1600px) {
    .login, .login-container { zoom: 0.98; }
}
@media (min-width: 2000px) {
    .login, .login-container { zoom: 0.95; }
}

/* Short viewports: zoom out to fit height and reduce padding */
@media (max-height: 800px) {
    body { padding: 20px 0; }
    .login, .login-container { zoom: 0.95; }
}
@media (max-height: 750px) {
    body { padding: 15px 0; }
    .login, .login-container { zoom: 0.90; }
}
@media (max-height: 700px) {
    body { padding: 12px 0; }
    .login, .login-container { zoom: 0.85; }
}
@media (max-height: 650px) {
    body { padding: 10px 0; }
    .login, .login-container { zoom: 0.80; }
}
@media (max-height: 600px) {
    body { padding: 8px 0; }
    .login, .login-container { zoom: 0.75; }
}
@media (max-height: 550px) {
    body { padding: 5px 0; }
    .login, .login-container { zoom: 0.70; }
}
@media (max-height: 500px) {
    body { padding: 5px 0; }
    .login, .login-container { zoom: 0.65; }
}

/* Mobile: zoom out and minimal padding */
@media (max-width: 600px) {
    body { 
        padding: 0;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        height: 100dvh;
        height: -webkit-fill-available;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .login { 
        zoom: 0.82;
        width: 100%;
        max-width: 380px;
        padding: 25px 25px;
        gap: 15px;
        margin: 0;
    }
    .login .logo-img {
        width: 80px;
        height: 80px;
        padding: 12px;
        margin-bottom: 5px;
    }
    .login h2 {
        font-size: 1.4em;
        margin-bottom: 5px;
    }
    .login .inputBx {
        margin-bottom: 0;
    }
    .login .inputBx input {
        padding: 12px 16px;
    }
    .login .credits {
        margin-top: 10px;
        font-size: 11px;
    }
    .login-container { zoom: 0.90; }
    .links {
        gap: 12px;
        padding: 0 5px;
        margin-top: 5px;
    }
    .links a {
        font-size: 13px;
        padding: 5px 8px;
    }
    /* Register page needs scroll */
    body.register-page,
    body.has-wrapper {
        height: auto;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        overflow: auto;
        align-items: flex-start;
        padding-top: 20px;
    }
    body.register-page .login-container,
    body.has-wrapper .login-container {
        margin-top: 0;
    }
}

/* Very narrow screens (< 350px) - just zoom, keep card style */
@media (max-width: 350px) {
    body { padding: 10px 2px; }
    .login { zoom: 0.85; }
    .login-container { zoom: 0.72; }
}

/* Extra narrow screens (< 300px) */
@media (max-width: 300px) {
    body { padding: 8px 0; }
    .login { zoom: 0.75; }
    .login-container { zoom: 0.62; }
}
