/* ===== 容器 ===== */
.jackstudio-login-container {
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

/* ===== 卡片 ===== */
.jl-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    padding: 28px 24px;
    max-width: 420px;
    width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
    float: none;
}

/* ===== 標題 ===== */
.jl-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 20px 0;
}

/* ===== LINE 按鈕 ===== */
.jl-btn-line,
.jackstudio-login-container .jl-btn-line,
.jl-card .jl-btn-line {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 13px 0 !important;
    background: #02b903 !important;
    color: white !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin-bottom: 10px !important;
    float: none !important;
    text-align: center !important;
}

.jl-btn-line:hover,
.jackstudio-login-container .jl-btn-line:hover {
    background: #029a02 !important;
}

.jl-line-logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

/* ===== 會員註冊按鈕 ===== */
.jl-btn-register,
.jackstudio-login-container .jl-btn-register,
.jl-card .jl-btn-register {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 0 !important;
    background: #dce6f9 !important;
    color: #5c7bbf !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    float: none !important;
}

.jl-btn-register:hover,
.jl-btn-register.active {
    background: #c8d8f5;
}

/* ===== 分隔線 ===== */
.jl-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.jl-divider::before,
.jl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.jl-divider span {
    color: #aaaaaa;
    font-size: 13px;
    white-space: nowrap;
}

/* ===== 三個 icon ===== */
.jl-icons,
.jackstudio-login-container .jl-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 28px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.jl-icon-item,
.jackstudio-login-container .jl-icon-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
    box-shadow: none !important;
}

.jl-icon-item span {
    font-size: 12px;
    color: #666666;
}

.jl-icon-item.active span {
    color: #5c7bbf;
    font-weight: 600;
}

.jl-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.jl-icon-member {
    background: #eef0f2;
}

.jl-icon-google {
    background: #f0f0f0;
}

.jl-icon-facebook {
    background: #1877F2;
}

.jl-icon-item.active .jl-icon-circle {
    box-shadow: 0 0 0 2px #5c7bbf;
    background: #e3eeff;
}

.jl-icon-item.active .jl-icon-facebook {
    background: #1877F2;
    box-shadow: 0 0 0 2px #1877F2;
}

/* ===== Accordion 展開區 ===== */
.jl-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.jl-expand.open {
    max-height: 1200px;
}

.jl-expand-inner {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: 16px;
}

/* ===== 忘記密碼 / 返回 按鈕列 ===== */
.jl-forgot-row {
    text-align: right;
    margin-bottom: 10px;
}

.jl-forgot-back-row {
    margin-bottom: 12px;
}

.jl-text-btn {
    background: none;
    border: none;
    color: #5c7bbf;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.jl-text-btn:hover {
    text-decoration: underline;
}

/* ===== 表單 ===== */
.jackstudio-form .form-group {
    margin-bottom: 10px;
}

.jackstudio-form input[type="text"],
.jackstudio-form input[type="email"],
.jackstudio-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.jackstudio-form input[type="text"]:focus,
.jackstudio-form input[type="email"]:focus,
.jackstudio-form input[type="password"]:focus {
    border-color: #5c7bbf;
}

.submit-button {
    width: 100%;
    padding: 11px;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.submit-button:hover {
    background: #555555;
}

/* ===== LINE 註冊表單（line-register-form.php 用）===== */
.jackstudio-login-container .full-width {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.jackstudio-login-container .full-width h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.jackstudio-login-container .line-avatar-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.jackstudio-login-container .line-avatar-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #06C755;
}

/* ===== 錯誤 / 成功訊息 ===== */
.jackstudio-login-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: fadeInBlock 0.6s ease-in-out;
}

.jackstudio-login-error p {
    margin: 0;
}

.jackstudio-login-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: fadeIn 0.6s ease-in-out;
    cursor: pointer;
}

.jackstudio-login-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 12px 15px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeInMessage 0.3s ease-in;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 12px 15px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeInMessage 0.3s ease-in;
}

.error-message i,
.success-message i {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.error-message span,
.success-message span {
    display: inline-block;
    width: calc(100% - 24px);
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== 響應式 ===== */
@media (max-width: 480px) {
    .jl-card {
        padding: 22px 16px;
    }

    .jl-icons {
        gap: 18px;
    }

    .error-message,
    .success-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}
