body {
    overflow: hidden;
}

.sidebar,
.topbar {
    display: none !important;
}

.main-content {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
}

.auth-container {
    display: flex;
    height: 100vh;
}

.auth-banner {
    flex: 0 0 55%;
    background: linear-gradient(135deg, #1a365d 0%, #2563eb 50%, #3b82f6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.banner-logo svg {
    width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    display: block;
    margin: 0 auto;
}

.banner-logo .logo-rect-base {
    fill: #e2e8f0;
}

.banner-logo .logo-rect-accent {
    fill: #0f172a;
}

.banner-logo .logo-text {
    fill: #ffffff;
}

.banner-logo .logo-subtext {
    fill: rgba(255, 255, 255, 0.9);
}

.banner-logo .logo-ia-text {
    fill: #60a5fa;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 100%;
    text-align: center;
}

.banner-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    width: 100%;
    text-align: center;
}

.banner-features {
    display: grid;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-form-section {
    flex: 0 0 45%;
    background: var(--bg-platform);
    display: flex;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 450px;
    margin: auto 0;
    background: var(--bg-content);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.login-header {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.login-header h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-body {
    padding: 1.5rem 2rem;
}

.btn-google {
    width: 100%;
    background: var(--bg-content);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-google:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    text-decoration: none;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-content);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-content);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-content);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

[data-theme="dark"] .form-control {
    color: #f1f5f9;
}

[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

.input-group-text {
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: var(--bg-content);
    color: var(--text-secondary);
}

.form-check-input {
    border-color: var(--border-color);
    background-color: var(--bg-content);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .form-check-input {
    background-color: #334155;
    border-color: #475569;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .form-check-label {
    color: #cbd5e1;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login.loading {
    position: relative;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.card-footer {
    background: var(--bg-hover);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
}

.card-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.card-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

.hcaptcha-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    min-height: 60px;
}

.hcaptcha-error,
.form-error-inline {
    color: var(--danger, #dc2626);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

.form-error-inline {
    display: none;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    animation: fadeInError 0.25s ease;
}

.form-error-inline i {
    margin-right: 0.4rem;
}

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

.verification-alert {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 12px;
}

.verification-alert h6 {
    color: #f59e0b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.verification-alert p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.verification-alert .btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

@media (max-width: 991px) {
    body {
        overflow: auto;
    }

    .main-content {
        height: auto !important;
        min-height: 100vh !important;
    }

    .auth-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .auth-banner {
        flex: 0 0 auto;
        min-height: 35vh;
        padding: 2rem;
    }

    .banner-logo svg {
        width: 320px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .banner-features {
        display: none;
    }

    .auth-form-section {
        flex: 1 0 auto;
        padding: 1.5rem;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-banner {
        min-height: auto;
        padding: 1.5rem 1.5rem 1rem;
    }

    .banner-logo svg {
        width: 240px;
    }

    .banner-title {
        font-size: 1.3rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .login-body {
        padding: 1.5rem;
    }
}

[data-theme="dark"] .btn-google svg path {
    opacity: 0.9;
}
