

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.login-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.login-wrap {
    display: flex;
    height: 100vh;
    width: 100%;
}

.brand-panel {
    position: relative;
    flex: 0 0 55%;
    max-width: 55%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(45, 122, 245, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(19, 94, 180, 0.5) 0%, transparent 50%),
        linear-gradient(135deg, #0a1c3d 0%, #0e2f5e 55%, #0a2547 100%);
}

.brand-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    object-position: 15% center;
    transform: scale(1.02);
    
    transition: opacity 0.3s linear;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        rgba(8, 22, 48, 0.88) 0%,
        rgba(11, 40, 82, 0.72) 45%,
        rgba(13, 60, 110, 0.45) 100%);
}

.brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 48px 56px 36px;
    color: #fff;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-logo i {
    font-size: 26px;
    color: #4da3ff;
}

.brand-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
}

.brand-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.brand-desc {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.5px;
    margin-bottom: 44px;
}

.brand-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-points li > i {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7cc0ff;
    background: rgba(77, 163, 255, 0.14);
    border: 1px solid rgba(124, 192, 255, 0.28);
    border-radius: 10px;
}

.brand-points strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.brand-points span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
}

.brand-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.login-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 36px;
}

.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-header p {
    font-size: 14px;
    color: #6b7280;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap > i {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: #9ca3af;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    color: #1f2937;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input::placeholder {
    color: #b0b7c0;
}

.input-wrap input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #1890ff;
    cursor: pointer;
}

.checkmark {
    display: none;
}

.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: #1890ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.login-btn:hover {
    background: #40a9ff;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.3);
}

.login-btn:active {
    background: #096dd9;
    transform: translateY(1px);
}

.login-btn:disabled {
    background: #91caff;
    cursor: not-allowed;
    box-shadow: none;
}

.loading-spinner {
    letter-spacing: 1px;
}

.error-message {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fff1f0;
    color: #d63031;
    border-left: 3px solid #d63031;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.login-footer {
    margin-top: 32px;
    text-align: center;
}

.login-footer p {
    font-size: 12px;
    color: #9ca3af;
}

.license-info-box {
    position: absolute;
    top: 24px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    z-index: 9999;
    background: rgba(248, 250, 252, 0.9);
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #eef0f3;
}

.license-info-box.license-invalid {
    color: #d32f2f;
    background: #fff5f5;
    border-color: #ffd6d6;
}

.license-info-box i {
    font-size: 13px;
}

.license-info-box .license-fp {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #9ca3af;
}

.license-copy-btn {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
    text-decoration: underline;
}

.license-copy-btn:hover {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .brand-panel {
        display: none;
    }
    .login-panel {
        flex: 1;
    }
}

@media (max-height: 720px) {
    .brand-content {
        padding: 28px 48px 22px;
    }
    .brand-logo {
        font-size: 18px;
    }
    .brand-logo i {
        font-size: 21px;
    }
    .brand-title {
        font-size: 30px;
        margin-bottom: 14px;
    }
    .brand-desc {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 26px;
    }
    .brand-points {
        gap: 14px;
    }
    .brand-points li > i {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .brand-points strong {
        font-size: 14px;
    }
    .brand-points span {
        font-size: 12px;
    }
    .login-panel {
        padding: 24px 40px;
    }
    .login-header {
        margin-bottom: 22px;
    }
    .login-header h1 {
        font-size: 22px;
    }
    .login-form .form-group {
        margin-bottom: 14px;
    }
    .input-wrap input {
        height: 42px;
    }
    .login-btn {
        height: 42px;
    }
    .form-options {
        margin-bottom: 16px;
    }
    .login-footer {
        margin-top: 18px;
    }
    .license-info-box {
        top: 14px;
        right: 16px;
    }
}
