/* 传奇登录页面样式 - 手机端优先 */

/* 登录页面专用样式 */
.login-page {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 25%, #f5f1e8 25%, #e8dcc6 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 顶部标题区域 */
.login-header {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.logo-area {
    text-align: center;
}

.game-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.game-logo i {
    font-size: 42px;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: dragonGlow 3s ease-in-out infinite alternate;
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-size: 24px;
    font-weight: bold;
    color: #d4af37;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-subtitle {
    font-size: 14px;
    color: #b8b8b8;
    margin-top: 2px;
}

/* 主要登录区域 */
.login-main {
    padding: 30px 0 50px;
    position: relative;
    z-index: 5;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 500px;
}

/* 左侧装饰区域 */
.login-decoration {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #2c1810;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    display: none; /* 手机端隐藏 */
}

.decoration-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.warrior-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.login-decoration h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.login-decoration h3 {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.login-decoration p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* 登录表单区域 */
.login-form-area {
    padding: 30px 20px;
}

.form-container {
    max-width: 400px;
    margin: 0 auto;
}

/* 表单标题 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 24px;
    color: #2c1810;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.form-header h2 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-weight: normal;
}

.form-header p {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    margin-bottom: 5px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #2c1810;
}

.form-label i {
    color: #d4af37;
    width: 16px;
}

.label-english {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* 输入容器 */
.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #d4af37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.form-group.focused .form-label {
    color: #d4af37;
}

.input-placeholder {
    position: absolute;
    bottom: -18px;
    left: 15px;
    font-size: 11px;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-input:focus + .input-placeholder {
    opacity: 1;
}

/* 密码切换按钮 */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #d4af37;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

/* 记住登录复选框 */
.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #d4af37;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-checkbox input:checked + .checkbox-custom {
    background: #d4af37;
}

.remember-checkbox input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    line-height: 1.2;
}

.checkbox-label .english {
    display: block;
    font-size: 11px;
    color: #999;
}

/* 忘记密码链接 */
.forgot-link {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.forgot-link:hover {
    color: #b8941f;
    text-decoration: underline;
}

.forgot-link .english {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #2c1810;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #b8941f 0%, #e6c200 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    line-height: 1.2;
}

.btn-english {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.btn-effects {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover .btn-effects {
    left: 100%;
}

/* 其他登录选项 */
.other-options {
    text-align: center;
    margin-bottom: 20px;
}

.divider {
    position: relative;
    margin-bottom: 20px;
    color: #666;
    font-size: 13px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.divider .english {
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

/* 社交登录按钮 */
.social-login {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    max-width: 120px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.qq-login {
    border-color: #1296db;
    color: #1296db;
}

.qq-login:hover {
    background: #1296db;
    color: white;
}

.wechat-login {
    border-color: #07c160;
    color: #07c160;
}

.wechat-login:hover {
    background: #07c160;
    color: white;
}

/* 注册链接 */
.register-link {
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.register-btn {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.register-btn:hover {
    color: #b8941f;
    text-decoration: underline;
}

.register-link .english {
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

/* 底部信息 */
.login-footer {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-info p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #d4af37;
}

.game-tips p {
    font-size: 11px;
    color: #b8b8b8;
    line-height: 1.4;
    margin-bottom: 2px;
}

/* 背景装饰元素 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: rgba(212, 175, 55, 0.1);
    font-size: 24px;
    animation: floatAround 10s ease-in-out infinite;
}

.dragon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.sword-1 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shield-1 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.gem-1 {
    top: 40%;
    right: 25%;
    animation-delay: 6s;
}

/* 动画效果 */
@keyframes dragonGlow {
    from {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.25;
    }
}

/* 平板端适配 (768px以上) */
@media (min-width: 768px) {
    .login-header {
        padding: 25px 0;
    }
    
    .game-logo i {
        font-size: 50px;
    }
    
    .logo-title {
        font-size: 28px;
    }
    
    .logo-subtitle {
        font-size: 16px;
    }
    
    .login-main {
        padding: 40px 0 60px;
    }
    
    .login-container {
        grid-template-columns: 2fr 3fr;
        max-width: 800px;
    }
    
    .login-decoration {
        display: flex;
    }
    
    .login-form-area {
        padding: 40px 30px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    .form-header h2 {
        font-size: 18px;
    }
    
    .social-login {
        gap: 20px;
    }
    
    .social-btn {
        max-width: 140px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* PC端适配 (1024px以上) */
@media (min-width: 1024px) {
    .login-container {
        max-width: 900px;
        grid-template-columns: 1fr 1fr;
    }
    
    .login-decoration {
        padding: 50px 40px;
    }
    
    .warrior-icon {
        font-size: 80px;
    }
    
    .login-decoration h2 {
        font-size: 32px;
    }
    
    .login-decoration h3 {
        font-size: 18px;
    }
    
    .login-form-area {
        padding: 50px 40px;
    }
    
    .form-container {
        max-width: 350px;
    }
    
    .floating-element {
        font-size: 32px;
    }
}

/* 大屏幕优化 (1200px以上) */
@media (min-width: 1200px) {
    .login-container {
        max-width: 1000px;
    }
    
    .floating-element {
        font-size: 40px;
    }
}

/* 加载动画 */
.form-container {
    animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单验证样式 */
.form-input:invalid {
    border-color: #dc3545;
}

.form-input:valid {
    border-color: #28a745;
}

/* 响应式字体大小调整 */
@media (max-width: 480px) {
    .form-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .login-form-area {
        padding: 25px 15px;
    }
    
    .social-login {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-btn {
        max-width: none;
    }
}
