:root {
    --sp-bg: #f6f7fb;
    --sp-card: #ffffff;
    --sp-dark: #111827;
    --sp-muted: #667085;
    --sp-border: #e4e7ec;
    --sp-primary: #2563eb;
    --sp-primary-dark: #1d4ed8;
    --sp-primary-soft: #eff6ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--sp-bg);
    color: var(--sp-dark);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.login-page {
    min-height: 100vh;
    padding: 32px;
    background: #f6f7fb;
}

.login-shell {
    max-width: 1120px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

.login-info-panel {
    min-height: 620px;
    height: 100%;
    padding: 42px;
    background: #111827;
    color: #fff;
}

.login-brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 90px;
}

.login-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.login-brand-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.login-brand-subtitle {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    margin-top: 4px;
}

.login-info-content {
    max-width: 460px;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 24px;
}

.login-info-content h1 {
    font-size: 34px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

.login-info-content p {
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.login-feature-list {
    display: block;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
}

.login-feature-item i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-info-footer {
    margin-top: 95px;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.login-form-panel {
    min-height: 620px;
    height: 100%;
    padding: 52px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo-area {
    margin-bottom: 28px;
    text-align: center;
}

.login-logo {
    max-width: 170px;
    max-height: 75px;
    object-fit: contain;
    display: none;
    margin: 0 auto;
}

.login-logo[src]:not([src=""]) {
    display: block;
}

.login-logo-placeholder {
    width: 160px;
    height: 64px;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.login-logo[src]:not([src=""]) + .login-logo-placeholder {
    display: none;
}

.login-title-area {
    text-align: center;
    margin-bottom: 26px;
}

.login-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.login-title-area h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-dark);
    letter-spacing: -.01em;
    margin-bottom: 8px;
}

.login-title-area p {
    margin: 0 auto;
    color: var(--sp-muted);
    font-size: 14px;
    line-height: 1.55;
}

.login-alert {
    border-radius: 12px;
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.login-field .form-label {
    color: #344054;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 17px;
    z-index: 2;
}

.login-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #d0d5dd;
    background: #fff;
    padding-left: 46px;
    color: var(--sp-dark);
    font-weight: 500;
    box-shadow: none !important;
}

.login-control::placeholder {
    color: #98a2b3;
    font-weight: 400;
}

.login-control:focus {
    border-color: #84aef5;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}

.btn-login {
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--sp-primary);
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.btn-login:hover,
.btn-login:focus {
    background: var(--sp-primary-dark);
}

.login-secure-text {
    margin-top: 24px;
    text-align: center;
    color: var(--sp-muted);
    font-size: 13px;
    font-weight: 500;
}

.login-secure-text i {
    color: #059669;
    margin-right: 6px;
}

@media (max-width: 991px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        border-radius: 18px;
    }

    .login-form-panel {
        min-height: auto;
        padding: 38px 26px;
    }
}

@media (max-width: 575px) {
    .login-page {
        padding: 12px;
    }

    .login-form-panel {
        padding: 30px 20px;
    }

    .login-title-area h3 {
        font-size: 22px;
    }
}

.login-register-link {
    margin-top: 18px;
    text-align: center;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.login-register-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.login-register-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.login-extra-links {
    margin-top: 18px;
    text-align: center;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.login-extra-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.login-extra-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.register-form-panel {
    min-height: 620px;
    height: 100%;
    padding: 42px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .register-form-panel {
        min-height: auto;
        padding: 38px 26px;
    }
}

@media (max-width: 575px) {
    .register-form-panel {
        padding: 30px 20px;
    }
}