/* 身份验证页面专用样式 */

/* 身份验证容器 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* 身份验证卡片 */
.auth-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9D4EDD, #7B2CBF, #5A189A);
}

.auth-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

/* 标题样式 */
.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #e0e0ff;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.auth-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #9D4EDD, #7B2CBF);
    border-radius: 3px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b8c6db;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0ff;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 97, 255, 0.15);
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: rgba(224, 224, 255, 0.3);
}

/* 错误和成功消息 */
.error-message,
.success-message {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.error-message {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.success-message {
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.success-message a {
    color: #48bb78;
    text-decoration: underline;
    font-weight: 600;
}

/* 按钮样式 */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.divider span {
    color: #b8c6db;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 198, 219, 0.3), transparent);
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0ff;
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.2);
}

.btn-google:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #9D4EDD, #7B2CBF);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
    margin-bottom: 1.5rem;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #8A3ECC, #6A25A0);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(157, 78, 221, 0.4);
}

/* 页脚链接 */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #b8c6db;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #9D4EDD;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #7B2CBF;
    text-decoration: underline;
}

/* 小提示文本 */
.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: rgba(224, 224, 255, 0.5);
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.8rem;
        margin: 0 1rem;
    }

    .auth-card h2 {
        font-size: 1.6rem;
    }
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-container input {
    flex: 1;
    padding-left: 40px;
}

.captcha-container img {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.captcha-container img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links a {
        margin: 0 10px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-container img {
        align-self: center;
    }
}

/* 表单动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card form {
    animation: fadeIn 0.6s ease-out forwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}