/* 登录页面样式 */
body {
    background-color: #f0f2f5;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

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

.account-switch-message {
    background-color: #e8f4ff;
    border: 1px solid #b3d8ff;
    color: #0066cc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* 用户名输入框容器 */
.username-input-container {
    position: relative;
}

/* 账号选择按钮 */
.account-select-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4f46e5;
    transition: all 0.2s;
}

.account-select-button:hover {
    color: #4338ca;
}

/* 账号下拉菜单 */
.accounts-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s, visibility 0s 0.3s;
    visibility: hidden;
    opacity: 0;
    border: none;
}

.accounts-dropdown.show {
    max-height: 300px;
    visibility: visible;
    opacity: 1;
    transition: max-height 0.3s ease-out, opacity 0.2s;
    border: 1px solid #e2e8f0;
}

.account-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

/* 确保在未展开状态下不显示任何边框和分隔线 */
.accounts-dropdown:not(.show) .account-item {
    border-bottom-color: transparent;
}

.account-item:last-child {
    border-bottom: none;
}

.account-item:hover {
    background-color: #f7fafc;
}

.account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    color: #4a5568;
}

.account-info {
    flex: 1;
}

.account-username {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 14px;
}

.account-password-status {
    color: #718096;
    font-size: 12px;
}

.account-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.account-item:hover .account-actions {
    opacity: 1;
}

.account-remove {
    color: #e53e3e;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

/* 文本居中样式 */
.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* 输入框样式 */
input {
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* 用户名输入框右侧留出空间给按钮 */
.username-input-container input {
    padding-right: 40px;
}

/* 输入框焦点样式 */
input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* 标签样式 */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* 按钮样式 */
.login-button {
    background-color: #4f46e5;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    height: 48px;
}

.login-button:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* 错误消息样式 */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

/* 标题样式 */
.text-center h1 {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 链接样式 */
a {
    color: #4f46e5;
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Flex 布局类 */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* SVG 图标样式 */
.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* 文本颜色类 */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-sm {
    font-size: 0.875rem;
}

.text-2xl {
    font-size: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .login-container {
        padding: 1.5rem;
        margin: 0 15px;
        max-width: 100%;
    }
} 