/* Argon 主题风格的登录注册页面样式 */

:root {
    --primary-color: #5e72e4;
    --primary-gradient: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
    --secondary-color: #f7fafc;
    --success-color: #2dce89;
    --danger-color: #f5365c;
    --warning-color: #fb6340;
    --info-color: #11cdef;
    --dark-color: #212529;
    --light-color: #adb5bd;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #faf9f6;
    color: var(--gray-800);
}

/* 背景壁纸容器 */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.auth-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.auth-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.auth-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.1) 35px, rgba(255, 255, 255, 0.1) 70px);
}

/* 主容器 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 5%;
    position: relative;
    z-index: 1;
}

/* 卡片容器 */
.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题 */
.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #4CAF50;
}

.auth-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4CAF50;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #4CAF50;
    background-clip: unset;
}

.auth-title p {
    color: #4CAF50;
    font-size: 0.9rem;
}

/* 表单组 */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.875rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
    outline: none;
}

.auth-form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.auth-form-group input::placeholder {
    color: var(--gray-400);
}

/* 记住我选项 */
.auth-remember {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.auth-remember input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-color);
}

.auth-remember label {
    margin: 0;
    cursor: pointer;
    color: var(--gray-800);
    font-weight: normal;
}

/* 按钮 */
.auth-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white);
    background: #4CAF50;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #45a049;
}

.auth-button:hover::before {
    width: 300px;
    height: 300px;
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Flash 消息 */
.auth-flash-messages {
    list-style: none;
    margin-bottom: 1.5rem;
}

.auth-flash-messages li {
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-flash-messages .error {
    background-color: rgba(245, 54, 92, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(245, 54, 92, 0.2);
}

.auth-flash-messages .success {
    background-color: rgba(45, 206, 137, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(45, 206, 137, 0.2);
}

.auth-flash-messages .info {
    background-color: rgba(17, 205, 239, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(17, 205, 239, 0.2);
}

/* 链接 */
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.auth-link a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link a:hover {
    color: var(--gray-700);
    text-decoration: underline;
}

/* 壁纸设置按钮 */
.auth-wallpaper-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.auth-wallpaper-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.auth-wallpaper-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

/* 壁纸设置面板 */
.auth-wallpaper-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 320px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.3s ease-out;
}

.auth-wallpaper-panel.active {
    display: flex;
}

.auth-wallpaper-panel h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.auth-wallpaper-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.auth-wallpaper-option {
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.auth-wallpaper-option:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.auth-wallpaper-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.2);
}

.auth-wallpaper-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-wallpaper-option .wallpaper-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
}

.auth-wallpaper-upload {
    margin-top: 0.5rem;
}

.auth-wallpaper-upload input[type="file"] {
    display: none;
}

.auth-wallpaper-upload-label {
    display: block;
    padding: 0.75rem;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 0.875rem;
    transition: var(--transition);
}

.auth-wallpaper-upload-label:hover {
    background: var(--gray-200);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 预设壁纸样式 */
.wallpaper-preset {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wallpaper-preset.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wallpaper-preset.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.wallpaper-preset.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wallpaper-preset.gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wallpaper-preset.gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.wallpaper-preset.gradient-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        justify-content: center;
        padding-left: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .auth-title h1 {
        font-size: 1.75rem;
    }

    .auth-wallpaper-panel {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 6rem;
    }

    .auth-wallpaper-toggle {
        bottom: 1rem;
        right: 1rem;
    }
}

/* 加载动画 */
.auth-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}