/* TailStack 风格登录页设计 */

/* 登录页面背景 - 简洁商务风格 */
.login-bg {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 登录卡片 */
.login-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

/* Logo容器 */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-logo i {
    font-size: 36px;
    color: #409EFF;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #909399;
}

/* 表单样式 */
.login-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 15px 0 40px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    background-color: #ffffff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.form-input::placeholder {
    color: #c0c4cc;
}

.form-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 40px;
    background: #409EFF;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: #66b1ff;
    transform: translateY(-1px);
}

.login-btn:active {
    background: #3a8ee6;
    transform: translateY(0);
}

/* 主题切换区域 */
.theme-switcher {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #e2e8f0;
}

.theme-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.theme-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    color: #6366f1;
    border-color: #6366f1;
    background: #eef2ff;
}

.theme-btn.active {
    color: #ffffff;
    border-color: #6366f1;
    background: #6366f1;
}

/* 登录页面的主题选择器覆盖 */
#loginThemeDropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
}

/* 确保主题选择器在最上层 */
.theme-selector-dropdown {
    z-index: 9999;
}

/* 提示信息 */
.login-info {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    font-size: 14px;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    font-weight: 500;
}

.login-info i {
    margin-right: 8px;
}

.login-info strong {
    color: #78350f;
    font-weight: 700;
}

/* 错误提示 */
.error-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* 输入框错误提示 */
.error-message {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    padding-left: 4px;
    line-height: 1.4;
}

/* 输入框错误状态 */
.form-input.error {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.form-input.error:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* 底部版权 */
.login-footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    z-index: 0;
}


