:root {
    --bg: #0b1220;
    --bg-soft: #121b2d;
    --card: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.15);
    --text: #0f172a;
    --text-soft: #5b6475;
    --white: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --success: #22c55e;
    --input-border: #dbe2ea;
    --shadow: 0 30px 80px rgba(2, 8, 23, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.10), transparent 25%),
        linear-gradient(135deg, #09111f 0%, #0f1b31 45%, #0b1220 100%);
    min-height: 100vh;
    color: var(--white);
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* LADO ESQUERDO / HERO */
.login-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-top-shape,
.hero-bottom-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.7;
}

.hero-top-shape {
    width: 340px;
    height: 340px;
    background: rgba(37, 99, 235, 0.14);
    top: -120px;
    left: -80px;
}

.hero-bottom-shape {
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -180px;
    right: -140px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: 100%;
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 42px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.hero-panel-3 {
    grid-column: span 2;
}

.panel-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.bars span {
    display: block;
    width: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.bars span:nth-child(1) { height: 24px; }
.bars span:nth-child(2) { height: 36px; }
.bars span:nth-child(3) { height: 52px; }
.bars span:nth-child(4) { height: 40px; }
.bars span:nth-child(5) { height: 30px; }

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.bid-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bid-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.bid-tag {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-text p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
}

/* LADO DIREITO / FORM */
.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: rgba(255, 255, 255, 0.03);
}

.login-box {
    width: 100%;
    max-width: 480px;
    background: var(--card);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 38px 34px 28px;
}

.login-header {
    margin-bottom: 28px;
}

.badge-monitor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.login-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.form-control {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: #fff;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.2s ease;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.btn-login {
    width: 100%;
    border: 0;
    min-height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    margin-top: 8px;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.btn-login:hover {
    transform: translateY(-1px);
    opacity: 0.98;
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* RESPONSIVO */
@media (max-width: 991px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-hero {
        padding: 42px 24px 28px;
        min-height: auto;
    }

    .login-form-side {
        padding: 0 16px 28px;
        background: transparent;
    }

    .login-box {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 575px) {
    .login-hero {
        padding: 28px 16px 18px;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-panel-3 {
        grid-column: span 1;
    }

    .login-box {
        padding: 28px 20px 22px;
        border-radius: 22px;
    }

    .login-header h2 {
        font-size: 1.7rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.98rem;
    }
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 64px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    outline: none;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.password-toggle:focus,
.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.password-toggle i {
    pointer-events: none;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 64px;
    position: relative;
    z-index: 1;
}

.password-toggle i {
    pointer-events: none;
}

.login-links {
    text-align: center;
    margin-top: 18px;
}

.login-links a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.login-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.login-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===== BOOTBOX / MODAL ===== */
.bootbox .modal-content {
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.bootbox .modal-header {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 22px;
}

.bootbox .modal-title {
    color: #0f172a !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.bootbox .modal-body {
    background: #ffffff;
    color: #334155 !important;
    padding: 20px 22px;
}

.bootbox .modal-body,
.bootbox .modal-body p,
.bootbox .modal-body label,
.bootbox .bootbox-body {
    color: #334155 !important;
}

.bootbox .form-control,
.bootbox input,
.bootbox input.form-control {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px;
    min-height: 52px;
    box-shadow: none !important;
}

.bootbox .form-control:focus,
.bootbox input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    color: #0f172a !important;
}

.bootbox .modal-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 16px 22px 20px;
}

.bootbox .btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
    border-radius: 10px;
    font-weight: 600;
}

.bootbox .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

.bootbox .btn-close,
.bootbox button.close {
    filter: none;
    opacity: 1;
}