* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    height: 100vh;
}

.login-page {
    display: flex;
    min-height: 100vh;
}

.brand-panel {
    flex: 0 0 360px;
    background: linear-gradient(160deg, rgb(26, 58, 138), rgb(47, 102, 239) 60%, rgb(74, 126, 245));
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.brand-panel::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
}

.brand-content {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    margin-bottom: 2rem;
}

.logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    letter-spacing: 1px;
}

.brand-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 3rem;
    line-height: 1.6;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    margin-top: 5px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.feature-detail {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.login-panel {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(248, 249, 251);
    padding: 2rem;
}

.login-wrapper {
    width: 100%;
    max-width: 360px;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 12px;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(26, 26, 26);
    margin: 0 0 0.5rem;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: rgb(153, 153, 153);
    margin: 0;
}

.login-form .form-item {
    margin-bottom: 1.25rem;
    position: relative;
}

.login-form .input-wrapper {
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: rgb(224, 227, 232) 0 0 0 1px inset;
    background: rgb(255, 255, 255);
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.login-form .input-wrapper:hover {
    box-shadow: rgb(192, 196, 204) 0 0 0 1px inset;
}

.login-form .input-wrapper.is-focus,
.login-form .input-wrapper:focus-within {
    box-shadow: rgb(47, 102, 239) 0 0 0 1px inset;
}

.login-form .input-inner {
    height: 40px;
    font-size: 0.9375rem;
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
}

.login-form .input-inner::placeholder {
    color: rgb(192, 196, 204);
}

.login-form .input-prefix {
    color: rgb(144, 147, 153);
    margin-right: 8px;
}

.login-form .input-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.login-form .input-suffix {
    color: rgb(144, 147, 153);
    cursor: pointer;
}

.login-form .input-password-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.form-options .layui-form-checkbox[lay-skin=primary] span {
    font-size: 0.875rem;
    color: rgb(102, 102, 102);
}

.login-btn {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    letter-spacing: 4px;
    background: rgb(47, 102, 239);
    border-color: rgb(47, 102, 239);
    transition: 0.25s;
}

.login-btn:hover, .login-btn:focus {
    background: rgb(74, 126, 245);
    border-color: rgb(74, 126, 245);
    box-shadow: rgba(47, 102, 239, 0.35) 0 4px 12px;
}

.login-btn:active {
    background: rgb(26, 58, 138);
    border-color: rgb(26, 58, 138);
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer .test-account-btn {
    font-size: 0.8125rem;
    color: rgb(153, 153, 153);
    text-decoration: none;
}

.login-footer .test-account-btn:hover {
    color: rgb(47, 102, 239);
}

.form-item.error .input-wrapper {
    box-shadow: 0 0 0 1px #ff4d4f inset;
}

.form-item .error-message {
    display: none;
    color: #ff4d4f;
    font-size: 12px;
    position: absolute;
    bottom: -18px;
    left: 0;
}

.form-item.error .error-message {
    display: block;
}

@media (max-width: 960px) {
    .login-page { flex-direction: column; }
    .brand-panel { flex: 0 0 auto; padding: 2rem 2rem 1.5rem; }
    .brand-content { justify-content: flex-start; }
    .brand-features, .brand-footer { display: none; }
    .brand-desc { margin-bottom: 0; }
    .login-panel { flex: 1 1 0%; padding: 2rem 1.5rem; }
    .login-wrapper { max-width: 400px; }
}

@media (max-width: 480px) {
    .brand-panel { padding: 1.5rem; }
    .brand-title { font-size: 1.375rem; }
    .login-panel { padding: 1.5rem 1rem; }
    .login-title { font-size: 1.25rem; }
    .login-btn { height: 44px; }
}