/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #121f3d 0%, #0a192f 100%);
    min-height: 100vh;
    color: #e6f1ff;
    line-height: 1.6;
}

/* 登录页面布局 */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 左上角Logo */
.page-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 100;
}

.page-logo img {
    height: 40px;
    width: auto;
}

/* 登录容器 */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #e6f1ff;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.login-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
}

/* 输入框样式 */
.linear-input {
    height: 50px;
    width: 100%;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.linear-input:focus-within {
    border-bottom-color: #FFB300;
    box-shadow: 0 1px 0 rgba(255, 179, 0, 0.2);
}

.linear-input:focus-within::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #FFB300, rgba(255, 179, 0, 0.5));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.linear-input:focus-within::after {
    transform: scaleX(1);
}

.linear-input.error {
    border-bottom-color: #ff4d4f;
}

.linear-input.error:focus-within {
    border-bottom-color: #ff4d4f;
    box-shadow: 0 1px 0 rgba(255, 77, 79, 0.2);
}

.linear-input-instance {
    flex: 1;
    height: 100%;
    padding: 15px 0;
    line-height: 24px;
    font-size: 16px;
    border: none;
    background: transparent;
    color: #e6f1ff;
    transition: all 0.3s ease;
}

.linear-input-instance:focus {
    outline: none;
}

.linear-input-instance::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.linear-input:focus-within .linear-input-instance::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    font-size: 14px;
}

/* 按钮样式 */
.account-btn {
    width: 100%;
    height: 50px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    margin-top: 40px;
    background: linear-gradient(90deg, #FFB300, #ffc107) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.3);
}

/* 底部版权信息 */
.page-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 错误提示 */
.input-error-tips {
    color: #ff4d4f;
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.input-error-tips .next-icon {
    margin-right: 4px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .page-logo {
        top: 20px;
        left: 20px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .login-title {
        font-size: 20px;
    }
}

/* 密码输入框图标 */
.linear-input-extra-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    cursor: pointer;
}

.linear-input-extra-icon .next-icon {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
}

.linear-input-extra-icon .next-icon:hover {
    color: #FFB300;
}

/* 密码输入框容器 */
.suffix-password {
    position: relative;
    margin-top: 20px;
}

/* 提示框样式 */
.alert-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.alert-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.alert-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    animation: alertShow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 演示账号登录提示浮层 */
.demo-login-tip {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(15px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    width: auto;
}

.demo-login-tip.active {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(15px);
}

.demo-tip-content {
    background: rgba(0, 188, 212, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: relative;
}

.demo-tip-content::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 188, 212, 0.9) transparent;
}

.demo-tip-content i {
    font-size: 18px;
}

@keyframes alertShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    transition: none;
}

.logo-img:hover {
    box-shadow: none;
    transform: none;
}

.remember-account {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    user-select: none;
}

.remember-account label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-account input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
} 