/**
 * Login Page - Premium UI Theme
 * Very Enjoy — Membership System
 */

/* ── 全域背景 ── */
body {
    background: var(--background) url('/static/home/img/img-login-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    perspective: 1000px;
}

/* ── 登入容器 (Login Box) ── */
.loginbox {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(40px) rotateX(-5deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.loginForm {
    display: flex;
    min-height: 600px;
}

/* ── 左側表單 (Left Panel) ── */
.left {
    flex: 1.2;
    padding: clamp(30px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formbox .title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.formbox .title span {
    color: var(--primary);
}

/* 表單卡片樣式 */
.formbox .card {
    background: #f8f9fc;
    border: 1px solid #edf0f7;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

/* ── 輸入框樣式 (Input Group) ── */
.inputli {
    margin-bottom: 20px;
}

.inputli:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    height: 54px;
    background: #fff;
    border: 2px solid #edf0f7;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 16px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(141, 25, 232, 0.1);
    outline: none;
}

/* ── 驗證碼區塊 (Captcha Row) ── */
.captcha-row {
    display: flex;
    gap: 12px;
}

.code_img {
    height: 54px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #edf0f7;
}

.code_img:hover {
    transform: scale(1.02);
}

/* ── 按鈕美化 (Buttons) ── */
.loginbtn {
    margin-top: 10px;
}

.btn-primary {
    height: 58px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(141, 25, 232, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(141, 25, 232, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.register-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.btn-underline {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.btn-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.btn-underline:hover {
    color: var(--primary);
}

.btn-underline:hover::after {
    width: 100%;
}

/* ── 右側裝飾 (Right Panel) ── */
.right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

@media (max-width: 850px) {
    .right { display: none; }
    .loginbox { max-width: 500px; }
}

.right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.loginbox:hover .right img {
    transform: scale(1.1);
}

.point1, .point2 {
    position: absolute;
    width: 60px !important;
    height: auto !important;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.point1 { top: 15%; left: 10%; animation: float 6s ease-in-out infinite; }
.point2 { bottom: 15%; right: 10%; animation: float 6s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── 掃光特效 (Shine Effect) ── */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.shine-effect:hover::before {
    left: 150%;
}
