/* 登录注册页面通用样式 - 美妆主题风格 */
.login-page-wrapper,
.register-page-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    position: relative;
    overflow: hidden;
}

/* 装饰性背景元素 */
.login-page-wrapper::before,
.register-page-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page-wrapper::after,
.register-page-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,168,197,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-container,
.register-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.login-box,
.register-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 0 15px 50px rgba(255,107,157,0.15);
    border: 1px solid rgba(255,107,157,0.1);
    position: relative;
    overflow: hidden;
}

.login-box::before,
.register-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2,
.register-header h2 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
}

.login-header p,
.register-header p {
    font-size: 15px;
    color: #999;
    margin: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-group .input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.form-group .input:focus {
    outline: none;
    border-color: var(--beauty-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,157,0.08);
}

.form-group small {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* 记住我 */
.remember-me {
    margin-bottom: 28px;
}

.remember-me label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--beauty-primary);
}

/* 按钮样式 */
.btn-login,
.btn-register {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,157,0.4);
}

.btn-login:active,
.btn-register:active {
    transform: translateY(-1px);
}

/* 链接样式 */
.login-links,
.register-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.login-links a,
.register-links a {
    color: var(--beauty-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-links a:hover,
.register-links a:hover {
    color: var(--beauty-accent);
    text-decoration: underline;
}

.login-links .separator {
    margin: 0 10px;
    color: #ddd;
}

/* 消息提示 */
.login-error,
.register-errors {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ec 100%);
    border: 2px solid #ffccd5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #d63447;
    font-size: 14px;
    position: relative;
    padding-left: 45px;
}

.login-error::before,
.register-errors::before {
    content: '⚠';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.register-errors p {
    margin: 6px 0;
}

.register-errors p:first-child {
    margin-top: 0;
}

.register-errors p:last-child {
    margin-bottom: 0;
}

.login-success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6f9ed 100%);
    border: 2px solid #9ae6b4;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #22543d;
    font-size: 14px;
    position: relative;
    padding-left: 45px;
}

.login-success::before {
    content: '✓';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #38a169;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-page-wrapper,
    .register-page-wrapper {
        padding: 30px 15px;
    }

    .login-box,
    .register-box {
        padding: 40px 30px;
    }

    .login-header h2,
    .register-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-box,
    .register-box {
        padding: 35px 25px;
    }

    .login-header h2,
    .register-header h2 {
        font-size: 24px;
    }

    .form-group .input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-login,
    .btn-register {
        padding: 14px;
        font-size: 15px;
    }
}



/* ========================================
   忘记密码页面样式
   ======================================== */

.forgot-password-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    position: relative;
    overflow: hidden;
}

.forgot-password-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.forgot-password-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,168,197,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.forgot-password-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.forgot-password-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 0 15px 50px rgba(255,107,157,0.15);
    border: 1px solid rgba(255,107,157,0.1);
    position: relative;
    overflow: hidden;
}

.forgot-password-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 35px;
}

.forgot-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255,107,157,0.3);
}

.forgot-icon i {
    font-size: 36px;
    color: #fff;
}

.forgot-password-header h2 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
}

.forgot-password-header p {
    font-size: 15px;
    color: #999;
    margin: 0;
    line-height: 1.6;
}

.btn-reset {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,157,0.4);
}

.btn-reset:active {
    transform: translateY(-1px);
}

.forgot-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.forgot-links a {
    color: var(--beauty-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-links a:hover {
    color: var(--beauty-accent);
    text-decoration: underline;
}

.forgot-links .separator {
    margin: 0 10px;
    color: #ddd;
}

.forgot-error {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ec 100%);
    border: 2px solid #ffccd5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #d63447;
    font-size: 14px;
    position: relative;
    padding-left: 45px;
}

.forgot-error::before {
    content: '⚠';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.forgot-success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6f9ed 100%);
    border: 2px solid #9ae6b4;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #22543d;
    font-size: 14px;
    position: relative;
    padding-left: 45px;
}

.forgot-success::before {
    content: '✓';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #38a169;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .forgot-password-wrapper {
        padding: 30px 15px;
    }

    .forgot-password-box {
        padding: 40px 30px;
    }

    .forgot-password-header h2 {
        font-size: 28px;
    }

    .forgot-icon {
        width: 70px;
        height: 70px;
    }

    .forgot-icon i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .forgot-password-box {
        padding: 35px 25px;
    }

    .forgot-password-header h2 {
        font-size: 24px;
    }

    .forgot-icon {
        width: 60px;
        height: 60px;
    }

    .forgot-icon i {
        font-size: 28px;
    }
}
