/* 继承登录页面的基础样式 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #5b37eb;
    --primary-hover: #4a2bc8;
    --secondary-color: #ff716e;
    --text-color: #333333;
    --text-light: #666666;
    --background: #f8f9fa;
    --card-background: #ffffff;
    --success-color: #4caf50;
    --error-color: #f44336;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --input-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景形状 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape1 {
    background: linear-gradient(45deg, #5b37eb, #37bbe9);
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -100px;
    animation: float 15s infinite alternate;
}

.shape2 {
    background: linear-gradient(45deg, #ff716e, #ffb65e);
    width: 600px;
    height: 600px;
    top: -250px;
    right: -150px;
    animation: float 20s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 500px;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

/* Logo 样式 */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 10px 20px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 24px;
}

.form-desc {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

.form-container {
    width: 100%;
    flex-grow: 1;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    background-color: #f9fafc;
    color: var(--text-color);
    box-shadow: var(--input-shadow);
    font-family: 'Nunito', Arial, sans-serif;
}

input::placeholder {
    color: #b0b7c3;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 55, 235, 0.15);
    background-color: #ffffff;
}

/* 按钮样式 */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Nunito', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: skewX(-15deg);
    transition: all 0.6s ease;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 55, 235, 0.25);
}

button:hover::after {
    left: 100%;
}

button:active {
    transform: translateY(0);
}

.login-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

/* 错误消息样式 */
.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    height: 18px;
}

/* 通知样式 */
.notification {
    padding: 12px 16px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    font-weight: 500;
    animation: slideDown 0.3s ease forwards;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-notification {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-left: 4px solid var(--success-color);
}

.error-notification {
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
    border-left: 4px solid var(--error-color);
}

/* 链接样式 */
.links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #ccc;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.footer p {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    .logo {
        font-size: 24px;
    }

    h1 {
        font-size: 22px;
    }

    .background-shape {
        opacity: 0.3;
    }

    .footer {
        margin-top: 30px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.login-btn:hover {
    animation: pulse 1s infinite;
}