/* Auth Pages - Split Screen Layout */
.auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #fff;
    overflow: hidden;
}

/* Left Side - Visual */
.auth-visual {
    flex: 1.5; /* 占据较大比例，约 60% */
    position: relative;
    background-image: url('../assets/images/harfian-ananta-daffa-luWD_YLzTyg-unsplash.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: #fff;
}

/* 渐变遮罩，仅保留底部的黑色渐变用于文字清晰度 */
.auth-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
    pointer-events: none;
}

.auth-visual-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    animation: fadeUp 0.8s ease-out;
}

.visual-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.visual-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 480px;
}

/* Right Side - Form */
.auth-content {
    flex: 1; /* 占据较小比例，约 40% */
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem; /* 增加左右内边距 */
    position: relative;
    z-index: 10;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.auth-header {
    margin-bottom: 2.5rem;
    text-align: left; /* 左对齐 */
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 确保内容水平居中 */
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-surface);
    margin-bottom: 2rem;
    text-decoration: none;
    width: 100%; /* 让链接占满容器宽度以便居中 */
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #f3f4f6; /* 浅灰背景 */
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #111;
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    background: #fff;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Auth Options (Forgot Password etc) */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-options a {
    color: var(--primary-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    height: auto;
}

.checkbox-wrapper input {
    /* 恢复默认样式以确保基础对齐，但保留尺寸控制 */
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    top: 4px; /* 增加下移距离 */
}

/* 移除之前的自定义 appearance 样式，回归原生以确保兼容性 */
.checkbox-wrapper input::before {
    display: none;
}

.checkbox-wrapper span {
    white-space: nowrap;
    line-height: 1.2;
    padding-top: 1px;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); /* 蓝紫色渐变 */
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    
    /* 居中核心样式 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.copyright {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-visual { flex: 1; padding: 3rem; }
    .auth-content { padding: 3rem; }
    .visual-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .auth-page { flex-direction: column; }
    .auth-visual { display: none; /* 移动端隐藏左侧图片，专注登录 */ }
    .auth-content { flex: 1; padding: 2rem; }
    .auth-form-container { max-width: 100%; }
}
