﻿.balance-login-page {
    min-height: 100vh;
    padding: 18px;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    background:
        linear-gradient(135deg, rgba(11, 20, 48, .98) 0%, rgba(24, 25, 78, .98) 48%, rgba(65, 43, 157, .98) 100%);
    color: #f8fafc;
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

.balance-login-shell {
    width: min(1360px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    border: 1px solid rgba(139, 123, 255, .34);
    border-radius: 8px;
    background: rgba(8, 14, 40, .48);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.login-brand-panel {
    grid-column: 1;
    position: relative;
    padding: 32px 40px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(10, 18, 54, .92), rgba(31, 22, 100, .72));
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .75), transparent);
}

.login-brand-panel::before {
    top: 0;
}

.login-brand-panel::after {
    bottom: 0;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.brand-logo-frame {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #5f56ff 0%, #4227d8 100%);
    box-shadow: 0 18px 34px rgba(79, 70, 229, .34);
}

.brand-logo-frame span {
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.brand-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.brand-title span {
    color: #6d5dfc;
}

.brand-subtitle {
    margin-top: 8px;
    color: rgba(248, 250, 252, .76);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.brand-copy {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    max-width: 560px;
}

.access-badge {
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 12px;
    border: 1px solid rgba(125, 115, 255, .42);
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .07);
    font-size: 14px;
    font-weight: 800;
}

.brand-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 40px;
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-copy h1 span {
    display: block;
    color: #7467ff;
}

.brand-copy > p:last-child {
    margin: 16px 0 0;
    color: rgba(248, 250, 252, .84);
    font-size: 18px;
    line-height: 1.75;
    font-weight: 600;
}

.features-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.feature-card {
    min-height: 92px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(116, 103, 255, .36);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(116, 103, 255, .74);
    background: rgba(255, 255, 255, .1);
}

.feature-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #7568ff;
}

.feature-icon svg,
.field-icon svg,
.password-toggle svg,
.primary-login-button svg,
.secure-note svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.feature-card strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.dashboard-illustration {
    position: relative;
    z-index: 1;
    margin-top: auto;
    min-height: 170px;
}

.dashboard-window {
    width: min(380px, 92%);
    margin-inline: auto;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(31, 22, 100, .72));
    box-shadow: 0 32px 58px rgba(0, 0, 0, .34);
    transform: perspective(900px) rotateX(5deg);
}

.window-top {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
}

.window-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5eead4;
}

.window-top span:nth-child(2) {
    background: #818cf8;
}

.window-top span:nth-child(3) {
    background: #c084fc;
}

.window-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12px;
}

.chart-card {
    min-height: 76px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.line-chart {
    grid-row: span 2;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.line-chart span {
    flex: 1;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #7c3aed, #22d3ee);
}

.line-chart span:nth-child(1) {
    height: 48%;
}

.line-chart span:nth-child(2) {
    height: 78%;
}

.line-chart span:nth-child(3) {
    height: 60%;
}

.donut-card {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.donut {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: conic-gradient(#22d3ee 0 34%, #7c3aed 34% 78%, rgba(255, 255, 255, .15) 78% 100%);
    box-shadow: inset 0 0 0 14px rgba(15, 23, 42, .9);
}

.mini-lines {
    flex: 1;
    display: grid;
    gap: 9px;
}

.mini-lines span {
    height: 8px;
    border-radius: 8px;
    background: rgba(226, 232, 240, .28);
}

.mini-lines span:nth-child(2) {
    width: 72%;
}

.mini-lines span:nth-child(3) {
    width: 48%;
}

.bars-card {
    padding: 15px;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.bars-card i {
    width: 18%;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #8b5cf6, #4338ca);
}

.bars-card i:nth-child(1) {
    height: 38%;
}

.bars-card i:nth-child(2) {
    height: 72%;
}

.bars-card i:nth-child(3) {
    height: 52%;
}

.bars-card i:nth-child(4) {
    height: 86%;
}

.login-form-panel {
    grid-column: 2;
    display: grid;
    place-items: center;
    padding: 38px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.login-form-card {
    width: min(470px, 100%);
    padding: 32px 36px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    color: #0f172a;
    box-shadow: 0 28px 70px rgba(5, 10, 34, .32);
}

.card-logo {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #5f56ff 0%, #4227d8 100%);
    box-shadow: 0 18px 30px rgba(79, 70, 229, .22);
}

.card-logo span {
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.card-heading {
    text-align: center;
    margin-bottom: 22px;
}

.card-heading h2 {
    margin: 0;
    color: #0b1736;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.card-heading p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 17px;
    font-weight: 700;
}

.login-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.6;
}

.login-alert-error {
    color: #991b1b;
    border: 1px solid #fecaca;
    background: #fff1f2;
}

.login-alert-warning {
    color: #854d0e;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 7px;
}

.login-field label {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.input-shell {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.input-shell:focus-within {
    border-color: #5b4df5;
    box-shadow: 0 0 0 4px rgba(91, 77, 245, .13), 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.field-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #64748b;
    transition: color .18s ease;
}

.input-shell:focus-within .field-icon {
    color: #5b4df5;
}

.input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.input-shell input::placeholder {
    color: #8a94a6;
    font-weight: 600;
}

.password-shell {
    padding-inline-end: 10px;
}

.password-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.password-toggle:hover {
    color: #5b4df5;
    background: #f3f4ff;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.login-options-single {
    justify-content: flex-start;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.remember-check input {
    width: 19px;
    height: 19px;
    accent-color: #5b4df5;
}

.forgot-link {
    border: 0;
    padding: 0;
    color: #4f46e5;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.forgot-link:hover {
    color: #312e81;
    text-decoration: underline;
}

.primary-login-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #5b4df5, #4426d9);
    box-shadow: 0 18px 34px rgba(79, 70, 229, .32);
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary-login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(79, 70, 229, .4);
    filter: saturate(1.08);
}

.primary-login-button:disabled {
    cursor: wait;
    opacity: .72;
}

.primary-login-button svg {
    width: 23px;
    height: 23px;
}

.secure-note {
    margin-top: 22px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.secure-note svg {
    width: 22px;
    height: 22px;
    color: #5b4df5;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .balance-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand-panel,
    .login-form-panel {
        grid-column: 1;
    }

    .login-brand-panel {
        padding: 34px;
    }

    .login-form-panel {
        padding: 34px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-illustration {
        display: none;
    }
}

@media (max-width: 720px) {
    .balance-login-page {
        padding: 0;
        place-items: stretch;
    }

    .balance-login-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .login-brand-panel {
        padding: 26px 20px;
        gap: 24px;
    }

    .brand-header {
        gap: 12px;
    }

    .brand-logo-frame {
        width: 56px;
        height: 56px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 15px;
    }

    .brand-copy {
        margin-top: 10px;
    }

    .brand-copy h1 {
        font-size: 36px;
    }

    .brand-copy > p:last-child {
        font-size: 18px;
        line-height: 1.8;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-card {
        min-height: 96px;
        padding: 14px 10px;
    }

    .login-form-panel {
        padding: 22px 16px 30px;
        place-items: start center;
    }

    .login-form-card {
        padding: 30px 18px;
    }

    .card-logo {
        width: 78px;
        height: 78px;
    }

    .card-heading h2 {
        font-size: 32px;
    }

    .card-heading p {
        font-size: 18px;
    }

    .input-shell,
    .primary-login-button {
        min-height: 58px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

