

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    color: #212529;
}

a{
    color: #000;
    text-decoration: none;
}

/* 主容器 - 分割屏布局 */
.login-container {
    display: flex;
    height: 100vh;
}

/* 左侧品牌视觉区 */
.brand-panel {
    flex: 1;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    overflow: hidden;
}

/* 动态几何装饰元素 */
.brand-panel::before,
.brand-panel::after,
.decor-shape {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(201, 165, 94 , 0.4), rgb(182, 165, 121 , 0.3));
    animation: rotateScale 20s infinite linear alternate;
}

.brand-panel::before {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.brand-panel::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}

.decor-shape {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

@keyframes rotateScale {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* 品牌Logo与文字 */
.brand-logo {
    width: 120px;
    height: 120px;
    /* background: linear-gradient(135deg, rgb(201, 165, 94), rgb(182, 165, 121)); */
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 1;
   
}

.brand-logo i {
    font-size: 4rem;
    color: white;
}

.brand-title {
    font-size: 2.5rem;
    color: #f8f9fa;
    margin-bottom: 1rem;
    z-index: 1;
}

.brand-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    z-index: 1;
    max-width: 400px;
}

/* 右侧登录表单区 */
.form-panel {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.login-form {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #212529;
    position: relative;
    padding-bottom: 0.8rem;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: rgb(201, 165, 94);
    border-radius: 2px;
}

/* 输入框样式 */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem 0.5rem;
    border: none;
    border-bottom: 2px solid #e9ecef;
    font-size: 1rem;
    outline: none;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    border-bottom-color: rgb(201, 165, 94);
    transform: translateY(-2px);
}

.form-label {
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.8rem;
    left: 0;
    color: rgb(201, 165, 94);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 复选框与忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.remember-me input:checked + .custom-checkbox {
    background: rgb(201, 165, 94);
    border-color: rgb(201, 165, 94);
}

.custom-checkbox i {
    color: white;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.remember-me input:checked + .custom-checkbox i {
    opacity: 1;
}

.remember-me input {
    display: none;
}

.forgot-password {
    color: rgb(201, 165, 94);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password:hover {
    color: rgb(182, 165, 121);
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(201, 165, 94) 0%, rgb(182, 165, 121) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 223, 213, 0.25);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 223, 213, 0.2);
}

/* 错误提示 */
.error-message {
    color: #ff4757;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    display: none;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .brand-panel {
        padding: 2rem;
        height: 40vh;
    }

    .form-panel {
        padding: 2rem;
        height: 60vh;
    }

    .brand-panel::before,
    .brand-panel::after {
        width: 300px;
        height: 300px;
    }
}
