

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* 全局样式 */
body {
    min-height: 100vh;
    background-color: #0f1118;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

/* 背景效果 */
.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.bg-gradient {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.bg-gradient.top {
    background: radial-gradient(circle, #E35A6A, transparent 70%);
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-gradient.bottom {
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: -400px;
    left: 50%;
    transform: translateX(-50%);
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* 左侧品牌区域 */
.brand-section {
    flex: 0.5;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.brand-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E35A6A;
    opacity: 0.5;
}

.brand-logo {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  text-align: center; 
}



.brand-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.brand-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 350px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 右侧登录表单区域 */
.form-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: rgba(17, 20, 35);
}

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

.login-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem !important;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: #E35A6A;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    height: 1.2rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-checkbox.checked {
    background-color: #E35A6A;
    border-color: #E35A6A;
}

.forgot-link {
    color: #E35A6A;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #818cf8;
}

/* 按钮样式 */
.login-button {
    background: linear-gradient(135deg, #E35A6A, #ff6161);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

.login-button:hover::after {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

.login-button.loading {
    background: linear-gradient(90deg, #4f46e5, #E35A6A);
    cursor: wait;
}

.login-button.loading::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 1rem;
}

.social-button {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.social-button:active {
    transform: translateY(0);
}

/* 注册提示 */
.signup-prompt {
    text-align: center;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.signup-link {
    color: #E35A6A;
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
    position: relative;
}

.signup-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #E35A6A;
    transition: width 0.2s ease;
}

.signup-link:hover::after {
    width: 100%;
}

/* 图标样式 */
.icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .brand-section {
        padding: 2.5rem;
        text-align: center;
    }

    .brand-description {
        margin-left: auto;
        margin-right: auto;
    }

    .form-section {
        padding: 2.5rem;
    }

    .brand-logo {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .brand-title {
        font-size: 2.2rem;
    }

    .social-login {
        flex-direction: column;
    }

    .form-section, .brand-section {
        padding: 2rem 1.5rem;
    }
}
