/* Login Page Styles - OTIMIZADO PARA PERFORMANCE */
.login-page {
    min-height: 100vh;
    background: #0A0B0A;
    overflow: hidden;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.login-page .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

.login-page .row {
    margin: 0 !important;
    padding: 0 !important;
}

body.login-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: #0A0B0A !important;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    background: #0A0B0A !important;
}

/* Scroll suave customizado */
.login-page::-webkit-scrollbar,
body.login-page::-webkit-scrollbar {
    width: 12px;
}

.login-page::-webkit-scrollbar-track,
body.login-page::-webkit-scrollbar-track {
    background: rgba(10, 11, 10, 0.5);
}

.login-page::-webkit-scrollbar-thumb,
body.login-page::-webkit-scrollbar-thumb {
    background: rgba(39, 208, 125, 0.3);
    border-radius: 6px;
}

.login-page::-webkit-scrollbar-thumb:hover,
body.login-page::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 208, 125, 0.5);
}

body.login-page * {
    box-sizing: border-box;
}

.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(39, 208, 125, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(39, 208, 125, 0.02) 3px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* OTIMIZAÇÃO: Background estático ao invés de shapes animadas com blur */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Usando gradiente estático - muito mais leve */
    background:
        radial-gradient(circle at 20% 30%, rgba(39, 208, 125, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(39, 208, 125, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(39, 208, 125, 0.05) 0%, transparent 40%);
}

/* OTIMIZAÇÃO: Animação mais leve apenas de opacity */
.floating-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(39, 208, 125, 0.1) 0%, transparent 60%);
    opacity: 0.4;
}

/* Animação simplificada - apenas opacity */

.h-100 {
    min-height: 100vh;
}

/* OTIMIZAÇÃO: Removido backdrop-filter blur(20px) - MAJOR */
.login-panel {
    background: #0A0B0A;
    position: relative;
    z-index: 2;
    padding: 5rem 2rem 3rem;
}

.login-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(39, 208, 125, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.brand-logo-large {
    margin-bottom: 3rem !important;
}

.login-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.brand-tagline-large {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.login-form-container {
    width: 100%;
}

/* OTIMIZAÇÃO: Removido backdrop-filter blur(20px), aumentada opacidade */
.login-card, .register-card {
    background: rgba(10, 11, 10, 0.95);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(39, 208, 125, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(39, 208, 125, 0.08);
    position: relative;
    z-index: 1;
    text-align: left;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-align: center;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.8rem;
    text-align: left;
    display: block;
}

.input-wrapper {
    position: relative;
}

.password-input-wrapper .modern-input {
    padding-right: 3rem;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    transition: none;
    z-index: 10;
}

.btn-toggle-password:hover,
.btn-toggle-password:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    outline: none;
    background-color: rgba(39, 208, 125, 0.15);
}

.btn-toggle-password:active {
    transform: translateY(-50%);
}

/* OTIMIZAÇÃO: Transição mais rápida */
.modern-input {
    background: rgba(20, 21, 20, 0.6);
    border: 2px solid rgba(39, 208, 125, 0.2);
    border-radius: 15px;
    padding: 1rem 1.2rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* OTIMIZAÇÃO: Box-shadow simplificado (blur reduzido de 30px para 8px) */
.modern-input:focus {
    background: rgba(20, 21, 20, 0.8);
    border-color: #27D07D;
    box-shadow: 0 0 0 0.2rem rgba(39, 208, 125, 0.25);
    color: white;
    outline: none;
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #27D07D, #20b56a);
    transition: width 0.25s ease;
}

.modern-input:focus + .input-focus-border {
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.modern-checkbox:checked {
    background: linear-gradient(135deg, #27D07D, #20b56a);
    border-color: #27D07D;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
}

.forgot-link {
    color: #27D07D;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #20b56a;
}

/* OTIMIZAÇÃO: Box-shadow reduzido (blur de 40px para 15px) */
.btn-login {
    background: #2ACD7F;
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 12px rgba(42, 205, 127, 0.25);
}

.btn-login::before {
    content: none;
}

.btn-login:hover,
.btn-login:focus {
    background: #20b56a;
    box-shadow: 0 8px 16px rgba(42, 205, 127, 0.3);
    color: white;
}

.btn-text {
    transition: opacity 0.2s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .btn-loading {
    opacity: 1;
}

/* OTIMIZAÇÃO: Backdrop-filter reduzido */
.alert {
    background: rgba(10, 11, 10, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
    padding: 1rem;
}

.alert-success {
    border-color: rgba(39, 208, 125, 0.4);
    color: #27D07D;
    box-shadow: 0 5px 15px rgba(39, 208, 125, 0.2);
}

.login-step {
    transition: none;
}

/* Responsive */
@media (max-width: 768px) {
    .login-panel {
        padding: 3rem 1.5rem 2rem;
    }

    .login-logo {
        max-width: 220px !important;
    }

    .brand-tagline-large {
        font-size: 1.1rem;
    }

    .login-card, .register-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-panel {
        padding: 2.5rem 1rem 1.5rem;
    }

    .login-logo {
        max-width: 180px !important;
    }

    .login-card, .register-card {
        padding: 1.5rem 1rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

/* Performance optimization: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
