/* css/login.css - 星天云盘登录页面样式 (仿官网风格) */

/* === 基础与布局 === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9; /* 与官网body背景色一致 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233498db" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.auth-card {
    background-color: white;
    border-radius: 15px; /* 官网风格的圆角 */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* 官网卡片阴影 */
    max-width: 450px;
    width: 100%;
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.auth-header h1 {
    font-size: 2.5rem;
    color: #2c3e50; /* 官网标题色 */
    margin-bottom: 10px;
    font-weight: bold;
}
.auth-header h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71); /* 官网装饰线 */
    margin: 10px auto;
    border-radius: 2px;
}
.auth-header p {
    color: #7f8c8d; /* 官网副文本色 */
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 25px;
}

/* === 表单元素 (遵循官网卡片风格) === */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px; /* 官网圆角风格 */
    font-size: 1rem;
    color: #333;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
/* 输入框焦点效果 */
.form-group input:focus {
    border-color: #3498db; /* 官网主色调 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

/* === 验证码区域 === */
.code-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.code-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.code-input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.send-code-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    background: linear-gradient(to right, #3498db, #2ecc71); /* 官网渐变按钮 */
    color: white;
    border: none;
    border-radius: 30px; /* 官网按钮圆角 */
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.send-code-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.send-code-btn:disabled {
    background: linear-gradient(to right, #95a5a6, #bdc3c7);
    cursor: not-allowed;
    transform: none;
}

/* === 主要登录按钮 === */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: white; /* 与官网banner按钮一致 */
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 5px;
}
.auth-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* === 第三方登录区域 === */
.oauth-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}
.oauth-divider {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: #7f8c8d;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}
.oauth-divider span {
    padding: 0 15px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
}
.oauth-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
.oauth-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}
.oauth-btn:hover {
    transform: translateY(-8px); /* 官网卡片上浮效果 */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}
.oauth-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.oauth-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* === 页脚与链接 === */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}
.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover {
    text-decoration: underline;
}
.auth-footer p {
    margin: 8px 0;
}

/* === 提示与响应式 === */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-error {
    background: linear-gradient(135deg, #fdf2f2, #fde8e8);
    color: #9b1c1c;
    border-color: #f8b4b4;
}
.alert-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    border-color: #bbf7d0;
}

/* 响应式设计：参考了官网的断点 */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 25px;
    }
    .auth-header h1 {
        font-size: 2rem;
    }
    .oauth-platforms {
        grid-template-columns: 1fr;
    }
    .code-input-group {
        flex-direction: column;
    }
    .send-code-btn {
        width: 100%;
    }
}