


* {
    font-family: '新細明體';
}

body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    background: linear-gradient(145deg, #0c1a2f 0%, #1a3552 100%);
}


/* 登入卡片容器 */
.login-container {
    margin: 0 auto;
    z-index: 10;
    width: 100%;
    max-width: 560px;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 品牌Logo區域 */
.brand-section {
    text-align: center;
    margin-bottom: 20px;
}

.brand-logo {
    width: 180px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #000 0%, #ffecb3 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.brand-subtitle {
    color: #000;
    font-size: 1rem;
    font-weight: 300;
}

/* 登入卡片 */
.login-card {
    background: #fff;
    backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 30px 25px;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.5);
    /* border: 3px solid rgb(100 104 122 / 30%); */
    
    border: 3px solid rgba(255,215,140,0.3);
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 60px -20px rgba(0,0,0,0.7);
    border-color: rgba(255,215,140,0.6);
}

/* 頁籤切換 */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5f7a;
    border-radius: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
    box-shadow: 0 5px 15px rgba(30,60,114,0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(0,0,0,0.03);
    color: #1e3c72;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: #1e2f4a;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #8a9bb5;
    font-size: 1.2rem;
    z-index: 10;
}

.form-control-custom {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-custom:focus {
    border-color: #1e3c72;
    outline: none;
    box-shadow: 0 0 0 4px rgba(30,60,114,0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: #8a9bb5;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1e3c72;
}

/* 記住我 & 忘記密碼 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5f7a;
    cursor: pointer;
}

.remember-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e3c72;
}

.forgot-link {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #f39c12;
    text-decoration: underline;
}

/* 登入按鈕 */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -8px rgba(30,60,114,0.4);
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px #1e3c72;
    background: linear-gradient(145deg, #2b5580, #1e3c72);
}

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

/* 第三方登入 */
.social-login {
    text-align: center;
    margin-bottom: 25px;
}

.social-login p {
    color: #8a9bb5;
    font-size: 0.9rem;
    position: relative;
    margin-bottom: 20px;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5f7a;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: #1e3c72;
    color: #1e3c72;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 註冊連結 */
.register-link {
    text-align: center;
    color: #4a5f7a;
}

.register-link a {
    color: #1e3c72;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #f39c12;
    text-decoration: underline;
}

/* 掃碼登入區塊 (預設隱藏) */
.qr-section {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.qr-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    margin: 20px auto;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code svg {
    width: 100%;
    height: 100%;
}

.qr-text {
    color: #4a5f7a;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* 返回首頁連結 */
.back-home {
    text-align: center;
    margin-top: 25px;
}

.back-home a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-home a:hover {
    color: white;
}

/* 錯誤提示 */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fecaca;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message i {
    font-size: 1.2rem;
    color: #dc2626;
}
.yanzm{
    justify-content: space-between;
}
.yanzm img{
    max-width: 100%;
    overflow: hidden;
}

/* 移動端調整 */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .brand-logo {
        width: 140px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 6px 15px;
        font-size: 1rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}



/* 步驟指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #8a9bb5;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
    box-shadow: 0 5px 15px rgba(30,60,114,0.3);
}

.step-item.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5f7a;
}

.step-item.active .step-label {
    color: #1e3c72;
}

.step-item.completed .step-label {
    color: #10b981;
}

/* 步驟內容 */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}


/* 驗證碼群組 */
.verification-group {
    display: flex;
    gap: 10px;
}

.verification-group .form-control-custom {
    flex: 1;
    padding-left: 39px; /* 沒有圖標所以不需要左內邊距 */
}

.verification-group .form-control-custom:first-child {
    padding-left: 50px; /* 有圖標的需要左內邊距 */
}

.send-code-btn {
    padding: 0 22px;
    background: #f0f4fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-weight: 600;
    color: #1e3c72;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.send-code-btn:hover {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
}

.send-code-btn.disabled {
    background: #e9ecef;
    color: #8a9bb5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 密碼強度指示器 */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.strength-segment {
    height: 5px;
    flex: 1;
    background: #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.strength-segment.weak {
    background: #ef4444;
}

.strength-segment.medium {
    background: #f59e0b;
}

.strength-segment.strong {
    background: #10b981;
}

.strength-text {
    font-size: 0.85rem;
    color: #6b7b95;
}


        /* 電子郵件按鈕群組 */
        .email-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .email-group .input-group-custom {
            flex: 2;
        }

        .email-group .send-code-btn {
            flex: 1;
            min-width: 140px;
        }

        /* 驗證碼按鈕 */
        .send-code-btn {
            padding: 12px 15px;
            background: linear-gradient(145deg, #f0f4fa, #e9effa);
            border: 2px solid #e9ecef;
            border-radius: 30px;
            font-weight: 600;
            color: #1e3c72;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            text-align: center;
            border: 2px solid rgba(30,60,114,0.1);
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .send-code-btn:hover:not(:disabled) {
            background: linear-gradient(145deg, #1e3c72, #2b5580);
            border-color: #1e3c72;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(30,60,114,0.3);
        }

        .send-code-btn:disabled {
            background: #e9ecef;
            color: #8a9bb5;
            cursor: not-allowed;
            opacity: 0.7;
            border-color: #d1d9e6;
        }

        /* 提示文字 */
        .hint-text {
            font-size: 0.75rem;
            color: #8a9bb5;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .hint-text i {
            font-size: 0.8rem;
        }

        /* 密碼眼睛圖標 */
        .password-toggle {
            position: absolute;
            right: 15px;
            color: #8a9bb5;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.8);
            pointer-events: none;
            z-index: 20;
        }

        .password-toggle.visible {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
            pointer-events: auto;
        }

        .password-toggle:hover {
            color: #1e3c72;
        }

        /* 密碼強度指示器 */
        .password-strength {
            margin-top: 8px;
        }

        .strength-bar {
            display: flex;
            gap: 5px;
            margin-bottom: 4px;
        }

        .strength-segment {
            height: 4px;
            flex: 1;
            background: #e9ecef;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .strength-segment.weak {
            background: #ef4444;
        }

        .strength-segment.medium {
            background: #f59e0b;
        }

        .strength-segment.strong {
            background: #10b981;
        }

        .strength-text {
            font-size: 0.75rem;
            color: #6b7b95;
        }

        /* 圖形驗證碼區域 */
        .captcha-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .captcha-group .input-group-custom {
            flex: 1;
        }

        .captcha-image {
            width: 120px;
            height: 48px;
            background: linear-gradient(145deg, #2d4b72, #1e3c72);
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 8px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            border: 2px solid rgba(255,215,140,0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }

        .captcha-image:hover {
            transform: scale(1.02);
            border-color: #f39c12;
        }

        .captcha-refresh {
            color: #8a9bb5;
            cursor: pointer;
            font-size: 1.2rem;
            transition: color 0.3s ease;
        }

        .captcha-refresh:hover {
            color: #1e3c72;
        }

        /* 表單選項 */
        .form-check {
            margin: 20px 0;
        }

        .form-check-input {
            width: 18px;
            height: 18px;
            margin-right: 8px;
            cursor: pointer;
            accent-color: #1e3c72;
        }

        .form-check-label {
            color: #4a5f7a;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .form-check-label a {
            color: #1e3c72 !important;
            font-weight: 600;
            text-decoration: none;
        }

        .form-check-label a:hover {
            color: #f39c12;
            text-decoration: underline;
        }

        /* 註冊按鈕 */
        .register-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(145deg, #1e3c72, #2b5580);
            border: none;
            border-radius: 40px;
            color: white;
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px -8px rgba(30,60,114,0.4);
            margin: 15px 0 20px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .register-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 25px -8px #1e3c72;
            background: linear-gradient(145deg, #2b5580, #1e3c72);
        }

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

        .register-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .form-label .required {
            color: #dc2626;
            margin-left: 3px;
        }
        /* 登入連結 */
        .login-link {
            text-align: center;
            color: #4a5f7a;
            font-size: 0.9rem;
        }

        .login-link a {
            color: #1e3c72;
            font-weight: 700;
            text-decoration: none;
            margin-left: 5px;
        }

        .login-link a:hover {
            color: #f39c12;
            text-decoration: underline;
        }


        /* 提示訊息 */
        .error-message {
            background: #fee2e2;
            color: #991b1b;
            padding: 12px 20px;
            border-radius: 40px;
            margin-bottom: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid #fecaca;
            animation: shake 0.5s ease;
        }

        .success-message {
            background: #dcfce7;
            color: #166534;
            padding: 12px 20px;
            border-radius: 40px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid #86efac;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        /* 移動端調整 */
        @media (max-width: 576px) {
            .register-card {
                padding: 25px 20px;
            }
            
            .brand-logo {
                width: 130px;
            }
            
            .brand-title {
                font-size: 1.6rem;
            }
            
            .email-group {
                flex-direction: column;
                gap: 10px;
            }
            
            .email-group .send-code-btn {
                width: 100%;
            }
            
            .captcha-group {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .captcha-image {
                width: 100%;
                height: 48px;
            }
        }

        /* 返回首頁 */
        .back-home {
            text-align: center;
            margin-top: 25px;
        }

        .back-home a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .back-home a:hover {
            color: white;
        }

        .success-message2 {
            text-align: center;
            margin-bottom: 30px;
        }

        .success-message2 h3 {
            color: #1e3c72;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .success-message2 p {
            color: #4a5f7a;
        }
        /* 訊息提示 */
        .info-message {
            background: #e8f0fe;
            border-left: 4px solid #1e3c72;
            padding: 15px 20px;
            border-radius: 20px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #1e3c72;
            font-size: 0.95rem;
        }

        .info-message i {
            font-size: 1.3rem;
        }
        /* 完成圖示 */
        .success-icon {
            width: 100px;
            height: 100px;
            background: linear-gradient(145deg, #10b981, #34d399);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px auto 30px;
            font-size: 3.5rem;
            color: white;
            box-shadow: 0 15px 30px -10px #10b981;
            animation: scaleIn 0.5s ease;
        }

        @keyframes scaleIn {
            from { transform: scale(0); }
            to { transform: scale(1); }
        }