/* ============================================
   VMPacker - 登录/注册页面样式
   背景：浅紫色到白色渐变
   表单：毛玻璃效果
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, #e6d0ff 0%, #f0e9ff 30%, #fbf9ff 70%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header i {
    font-size: 48px;
    color: #5d3d8c;
    margin-bottom: 12px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #5d3d8c;
    letter-spacing: 2px;
}

.form-header .subtitle {
    font-size: 14px;
    color: #7b5db0;
    margin-top: 6px;
}

/* 输入框 */
.input-group {
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    height: 54px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: #7b5db0;
    box-shadow: 0 0 15px rgba(123, 93, 176, 0.2);
}

.input-group i {
    font-size: 18px;
    color: #7b5db0;
    padding: 0 20px;
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    padding: 5px 20px 5px 0;
    height: 100%;
    font-family: inherit;
}

.input-group input::placeholder {
    color: rgba(123, 93, 176, 0.5);
    font-size: 14px;
}

/* 按钮 */
.btn-login {
    width: 100%;
    height: 54px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7b5db0, #5d3d8c);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 61, 140, 0.3);
    background: linear-gradient(135deg, #8c6fc7, #6b4da8);
}

/* 表单底部 */
.form-footer {
    text-align: center;
    margin-top: 24px;
}

.form-footer p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-footer a {
    color: #5d3d8c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #7b5db0;
    text-decoration: underline;
}

.admin-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideUp 0.5s ease-out;
}

.alert-warning {
    background: rgba(249, 171, 0, 0.15);
    color: #b8860b;
    border: 1px solid rgba(249, 171, 0, 0.3);
}

.alert-error {
    background: rgba(217, 48, 37, 0.1);
    color: #c62828;
    border: 1px solid rgba(217, 48, 37, 0.2);
}

.alert-success {
    background: rgba(15, 157, 88, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(15, 157, 88, 0.2);
}

/* 响应式 */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .input-group {
        height: 48px;
    }

    .btn-login {
        height: 48px;
        font-size: 15px;
    }
}

/* 文字区域样式 */
textarea.form-input {
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
}

textarea.form-input:focus {
    border-color: #7b5db0;
    box-shadow: 0 0 15px rgba(123, 93, 176, 0.2);
}

textarea.form-input::placeholder {
    color: rgba(123, 93, 176, 0.5);
}