/* 温馨卧室背景 */
.login-page {
    min-height: 100vh;
    background: 
        /* 暖色光晕装饰 */
        radial-gradient(ellipse at 20% 80%, rgba(255, 200, 150, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 180, 200, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 220, 180, 0.15) 0%, transparent 70%),
        /* 温暖的奶油色基调 */
        linear-gradient(180deg, #fff5e6 0%, #ffeedd 50%, #fff0d9 100%);
    position: relative;
    overflow: hidden;
}

/* 漂浮装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-item:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; font-size: 1.2rem; }
.floating-item:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; font-size: 1.8rem; }
.floating-item:nth-child(3) { bottom: 25%; left: 8%; animation-delay: 2s; font-size: 1.4rem; }
.floating-item:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 3s; font-size: 1.6rem; }
.floating-item:nth-child(5) { top: 40%; left: 5%; animation-delay: 4s; font-size: 1rem; }
.floating-item:nth-child(6) { top: 15%; right: 30%; animation-delay: 5s; font-size: 1.3rem; }
.floating-item:nth-child(7) { bottom: 30%; right: 25%; animation-delay: 2.5s; font-size: 1.1rem; }
.floating-item:nth-child(8) { top: 60%; left: 15%; animation-delay: 1.5s; font-size: 1.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 登录容器 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* 毛玻璃登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(255, 180, 150, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 45px 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 220, 200, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    display: block;
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-header h3 {
    color: #5a4a4a;
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.login-header .subtitle {
    color: #8a7a7a;
    font-size: 0.95rem;
}

/* 表单样式 */
.form-control {
    border: 2px solid #f5ebe0;
    border-radius: 14px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    background: rgba(255, 252, 248, 0.8);
    font-size: 1rem;
}

.form-control:focus {
    border-color: #ffb4a2;
    box-shadow: 0 0 0 4px rgba(255, 180, 160, 0.15);
    background: #fff;
}

.form-control::placeholder {
    color: #b8a8a8;
}

.form-label {
    color: #6a5a5a;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.mb-3 {
    margin-bottom: 22px;
}

/* 登录按钮 */
.btn-login {
    background: linear-gradient(135deg, #ffb4a2 0%, #ffd6c9 100%);
    border: none;
    color: #5a4040;
    padding: 15px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #ffa08d 0%, #ffc4b3 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 160, 140, 0.35);
    color: #4a3535;
}

.btn-login:active {
    transform: translateY(-1px);
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 25px;
    color: #8a7a7a;
    font-size: 0.95rem;
}

.register-link a {
    color: #e09f8b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: #d4866f;
    text-decoration: none;
}

/* 错误提示 */
.alert-error {
    background: #fff5f5;
    border: 1px solid #ffcccb;
    color: #c75050;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 22px;
    text-align: center;
    font-size: 0.95rem;
}

/* 装饰角落 */
.corner-decor {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
}
.corner-decor.top-left { top: 20px; left: 20px; }
.corner-decor.bottom-right { bottom: 20px; right: 20px; }

/* 温暖标语 */
.warm-wish {
    text-align: center;
    margin-top: 20px;
    color: #9a8a8a;
    font-size: 0.85rem;
    font-style: italic;
}
