/* 登录页面样式 */

/* 移除 login-wrapper 的 flex 布局，由 index.html 的 main-container 控制 */
.login-wrapper {
    /* display: flex; */
    /* min-height: 100vh; */
    width: 100%;
    position: relative;
    z-index: 1; /* Ensure content is above particles */
    /* flex-direction: row; */
}

/* slogan-section 的样式将由 index.html 中的 .left-text-container 和 .left-text 控制 */
.slogan-section {
    display: none; /* 在 index.html 中不再需要这个元素，隐藏它 */
}

.login-container {
    flex: 1; /* Take up half the width */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 24px;
}

.login-title {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.has-icon {
    position: relative;
}

.form-group.has-icon .form-control {
    padding-left: 40px;
}

.form-group.has-icon .form-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-disabled);
    font-size: 16px;
}

.form-control {
    height: 48px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: var(--font-size-sm);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 48px;
    font-size: var(--font-size-md);
    font-weight: 500;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.3);
}

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

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-btn .btn-text {
    transition: opacity 0.3s;
}

.login-btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loading {
    opacity: 1;
}

.login-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.company-selector {
    margin-bottom: 20px;
}

.company-selector select {
    height: 48px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: var(--font-size-md);
    background-color: var(--white);
    cursor: pointer;
}

.company-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    outline: none;
}

/* 错误提示样式 */
.error-message {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: "⚠";
    font-size: 12px;
}

.form-control.error {
    border-color: var(--error-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 在 index.html 中处理，这里不需要 */
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    /* 在 index.html 中处理，这里不需要 */
}


