﻿:root {
    --ss-bg: #07111f;
    --ss-bg-deep: #040b14;
    --ss-panel: rgba(12, 25, 42, 0.82);
    --ss-card: rgba(255, 255, 255, 0.055);
    --ss-border: rgba(255, 255, 255, 0.11);
    --ss-text: #f4f8ff;
    --ss-muted: #91a4bb;
    --ss-primary: #4f8cff;
    --ss-primary-dark: #3476e8;
    --ss-accent: #35d0ba;
    --ss-danger: #ff667a;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--ss-bg-deep);
    color: var(--ss-text);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

.smart-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 18% 20%, rgba(79, 140, 255, 0.12), transparent 34%), radial-gradient(circle at 82% 78%, rgba(53, 208, 186, 0.08), transparent 30%), linear-gradient(135deg, #040b14 0%, #07111f 48%, #09182a 100%);
}

.smart-login-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.7;
}

.bg-orb-one {
    width: 420px;
    height: 420px;
    top: -180px;
    left: -150px;
    background: rgba(79, 140, 255, 0.14);
}

.bg-orb-two {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -130px;
    background: rgba(53, 208, 186, 0.11);
}

.smart-login-layout {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 48px));
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(6, 17, 30, 0.68);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.smart-login-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px 64px;
    background: linear-gradient( 145deg, rgba(14, 35, 59, 0.92), rgba(7, 20, 35, 0.78) );
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.smart-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.smart-logo-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    font-size: 23px;
    background: linear-gradient( 145deg, var(--ss-primary), #6f72ff );
    box-shadow: 0 10px 28px rgba(79, 140, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}

.smart-logo-text {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.7px;
    color: #ffffff;
}

    .smart-logo-text span {
        color: var(--ss-primary);
    }

.smart-info-content {
    max-width: 500px;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 60px;
    padding-bottom: 30px;
}

.info-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    margin-bottom: 22px;
    border: 1px solid rgba(79, 140, 255, 0.28);
    border-radius: 8px;
    color: #83b1ff;
    background: rgba(79, 140, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.smart-info-content h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    font-weight: 300;
    color: #ffffff;
}

    .smart-info-content h1 strong {
        display: block;
        font-weight: 700;
        color: #ffffff;
    }

.smart-info-content > p {
    max-width: 450px;
    margin: 25px 0 0;
    color: var(--ss-muted);
    font-size: 15px;
    line-height: 1.8;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 38px;
}

.info-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .info-feature > span {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        background: rgba(255,255,255,0.045);
        color: var(--ss-accent);
        font-size: 17px;
    }

    .info-feature strong {
        display: block;
        margin-bottom: 2px;
        color: #eaf2ff;
        font-size: 13px;
        font-weight: 600;
    }

    .info-feature small {
        display: block;
        color: #71869f;
        font-size: 11px;
    }

.smart-login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 62px;
    background: rgba(4, 12, 22, 0.55);
}

.login-card {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.login-card-header {
    margin-bottom: 30px;
}

.login-mobile-logo {
    display: none;
}

.login-card-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 31px;
    font-weight: 650;
    letter-spacing: -1px;
}

.login-card-header p {
    margin: 8px 0 0;
    color: var(--ss-muted);
    font-size: 13px;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 102, 122, 0.22);
    border-radius: 12px;
    color: #ffb1bc;
    background: rgba(255, 102, 122, 0.07);
    font-size: 12px;
    line-height: 1.55;
}

    .login-error > i {
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--ss-danger);
    }

.login-field {
    margin-bottom: 20px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        color: #b9c9db;
        font-size: 12px;
        font-weight: 600;
    }

.login-input {
    position: relative;
}

    .login-input > i:first-child {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        color: #617892;
        font-size: 16px;
        pointer-events: none;
        transition: color 0.2s ease;
    }

    .login-input input {
        width: 100%;
        height: 52px;
        padding: 0 46px;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 13px;
        outline: none;
        color: #ffffff;
        background: rgba(255,255,255,0.045);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

        .login-input input::placeholder {
            color: #566b82;
        }

        .login-input input:hover {
            border-color: rgba(255,255,255,0.16);
        }

        .login-input input:focus {
            border-color: rgba(79, 140, 255, 0.75);
            background: rgba(79, 140, 255, 0.055);
            box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.09);
        }

            .login-input input:focus + .password-toggle,
            .login-input:focus-within > i:first-child {
                color: var(--ss-primary);
            }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #647990;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

    .password-toggle:hover {
        color: #a9c6ee;
        background: rgba(255,255,255,0.06);
    }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 24px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #7e92aa;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

    .remember-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.custom-check {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    transition: all 0.2s ease;
}

    .custom-check i {
        display: none;
        font-size: 11px;
        color: #ffffff;
    }

.remember-option input:checked + .custom-check {
    border-color: var(--ss-primary);
    background: var(--ss-primary);
}

    .remember-option input:checked + .custom-check i {
        display: block;
    }

.login-submit {
    position: relative;
    width: 100%;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--ss-primary), var(--ss-primary-dark) );
    box-shadow: 0 12px 28px rgba(79, 140, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.18);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .login-submit:hover {
        transform: translateY(-1px);
        filter: brightness(1.07);
        box-shadow: 0 16px 34px rgba(79, 140, 255, 0.27), inset 0 1px 0 rgba(255,255,255,0.18);
    }

    .login-submit:active {
        transform: translateY(0);
    }

    .login-submit:disabled {
        cursor: wait;
    }

.login-arrow {
    position: absolute;
    right: 17px;
    font-size: 17px;
}

.login-spinner {
    display: none;
}

.login-submit.loading .login-button-text,
.login-submit.loading .login-arrow {
    display: none;
}

.login-submit.loading .login-spinner {
    display: block;
    animation: spin 0.8s linear infinite;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: #536980;
    font-size: 11px;
}

    .login-security i {
        color: #4e8bff;
    }

.login-version {
    position: absolute;
    bottom: 23px;
    left: 0;
    right: 0;
    text-align: center;
    color: #3f5369;
    font-size: 10px;
    letter-spacing: 0.8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {

    .smart-login-layout {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 32px));
        min-height: auto;
    }

    .smart-login-info {
        display: none;
    }

    .smart-login-panel {
        min-height: 620px;
        padding: 48px 38px 70px;
    }

    .login-mobile-logo {
        display: flex;
        margin-bottom: 22px;
    }

        .login-mobile-logo .smart-logo-mark {
            width: 44px;
            height: 44px;
            font-size: 20px;
        }

    .login-version {
        bottom: 22px;
    }
}

@media (max-width: 480px) {

    .smart-login-layout {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .smart-login-panel {
        min-height: 100vh;
        padding: 34px 24px 70px;
    }

    .login-card-header h2 {
        font-size: 28px;
    }

    .login-input input {
        height: 50px;
    }

    .login-submit {
        height: 51px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
