/**
 * TAOT Theme - 學員註冊頁樣式 (v2 - 緊湊現代風格)
 *
 * 品牌色: 藍框 #566CA1 + 橘色 CTA #D9A270
 */

/* ===========================================================
   整版背景
   =========================================================== */
body.taot-registration-body {
    background: #f7f8fa;
}

/* 破除 page.php 的 .container 限制 */
body.taot-registration-body .container.page-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
}

body.taot-registration-body .entry-header {
    display: none;
}

body.taot-registration-body article.page {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

body.taot-registration-body .entry-content {
    padding: 0;
    margin: 0;
}

/* ===========================================================
   版面容器
   =========================================================== */
.taot-registration-page {
    min-height: calc(100vh - 80px);
    padding: 40px 16px 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.taot-registration-wrap {
    width: 100%;
    max-width: 480px;
}

/* ===========================================================
   頁首
   =========================================================== */
.taot-registration-header {
    text-align: center;
    margin-bottom: 24px;
}

.taot-registration-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 6px 0;
    letter-spacing: 0;
    line-height: 1.4;
}

.taot-registration-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ===========================================================
   主卡片
   =========================================================== */
.taot-registration-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 28px 28px 24px;
}

/* ===========================================================
   區塊分隔 (低調)
   =========================================================== */
.taot-form-section {
    margin-bottom: 20px;
}

.taot-form-section:last-of-type {
    margin-bottom: 12px;
}

.taot-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    display: block;
}

/* ===========================================================
   表單欄位 (緊湊)
   =========================================================== */
/* Tutor 原生 row/col 在此頁的調整 */
.taot-registration-form .tutor-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
}

.taot-registration-form .tutor-form-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 6px;
    box-sizing: border-box;
}

.taot-registration-form .tutor-form-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
}

.taot-registration-form .tutor-form-group {
    margin-bottom: 12px;
}

.taot-registration-form .tutor-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 5px;
    line-height: 1.4;
}

.taot-required {
    color: #e53935;
    font-weight: 400;
    margin-left: 1px;
}

.taot-registration-form input[type="text"],
.taot-registration-form input[type="email"],
.taot-registration-form input[type="tel"],
.taot-registration-form input[type="date"],
.taot-registration-form input[type="password"],
.taot-registration-form input[type="number"] {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 11px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #1a202c;
    transition: border-color 0.12s, box-shadow 0.12s;
    box-sizing: border-box;
    font-family: inherit;
    height: 40px !important;
    text-indent: 0 !important; /* 覆蓋 Tutor tutor-front.min.css 的 text-indent:15px */
    margin-bottom: 0 !important; /* 覆蓋 Tutor 的 margin-bottom:20px */
}

.taot-registration-form input[type="text"]::placeholder,
.taot-registration-form input[type="email"]::placeholder,
.taot-registration-form input[type="tel"]::placeholder,
.taot-registration-form input[type="password"]::placeholder {
    color: #a0aec0;
    font-size: 13px;
}

/*
 * 覆蓋 Tutor 內建 input[type=password] 的特殊樣式
 * Tutor tutor-front.min.css 對密碼欄位用了:
 *   padding:0; text-indent:15px; line-height:48px; font-size:16px
 * 導致游標被 text-indent 推開 15px,視覺上比 email 偏右。
 * 必須同時歸零 text-indent 並重設 line-height/font-size 才能視覺一致。
 */
.taot-registration-form .tutor-form-group input[type="password"],
.taot-registration-form input.password-checker {
    padding: 8px 36px 8px 11px !important; /* 右側保留給顯示/隱藏按鈕 */
    text-indent: 0 !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    border-radius: 6px !important;
}

.taot-registration-form input[type="text"]:focus,
.taot-registration-form input[type="email"]:focus,
.taot-registration-form input[type="tel"]:focus,
.taot-registration-form input[type="date"]:focus,
.taot-registration-form input[type="password"]:focus {
    border-color: #566CA1;
    box-shadow: 0 0 0 3px rgba(86, 108, 161, 0.12);
    outline: none;
}

.taot-registration-form input.taot-input-invalid {
    border-color: #e53935 !important;
    background: #fef2f2;
}

.taot-registration-form input.taot-input-valid {
    border-color: #10b981;
}

/* ===========================================================
   hint 文字
   =========================================================== */
.taot-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.taot-hint.taot-hint-error {
    color: #e53935;
}

.taot-hint.taot-hint-ok {
    color: #10b981;
}

.taot-hint.taot-hint-strong {
    color: #c08a52;
    font-size: 13px;
    font-weight: 600;
}

/* ===========================================================
   錯誤訊息框
   =========================================================== */
.taot-alert-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
}

.taot-alert-error ul {
    font-size: 13px;
    margin: 0 !important;
    padding-left: 18px !important;
}

/* ===========================================================
   服務條款
   =========================================================== */
.taot-toc {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin: 14px 0 16px;
    line-height: 1.5;
}

.taot-toc a {
    color: #566CA1;
    text-decoration: none;
    font-weight: 500;
}

.taot-toc a:hover {
    text-decoration: underline;
}

/* ===========================================================
   送出按鈕
   =========================================================== */
.taot-submit-wrap {
    margin-top: 18px;
}

.taot-btn-submit.tutor-btn.tutor-btn-primary {
    background: #566CA1 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    width: 100%;
    height: 40px;
    line-height: 1;
    box-shadow: none;
    transition: background 0.12s, transform 0.08s;
    cursor: pointer;
    letter-spacing: 1px;
}

.taot-btn-submit.tutor-btn.tutor-btn-primary:hover {
    background: #455a8a !important;
}

.taot-btn-submit.tutor-btn.tutor-btn-primary:active {
    background: #3d4f7a !important;
    transform: translateY(1px);
}

.taot-btn-submit.tutor-btn.tutor-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===========================================================
   頁腳 (登入連結)
   =========================================================== */
.taot-registration-footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #64748b;
}

.taot-registration-footer a {
    color: #566CA1;
    font-weight: 600;
    text-decoration: none;
    margin-left: 2px;
}

.taot-registration-footer a:hover {
    color: #D9A270;
    text-decoration: underline;
}

/* ===========================================================
   密碼強度條 (Tutor 內建) 樣式微調
   =========================================================== */
.taot-registration-form .tutor-password-strength-hint {
    margin-top: 6px;
}

.taot-registration-form .tutor-password-strength-hint .indicator {
    gap: 3px;
}

.taot-registration-form .tutor-password-strength-hint .indicator span {
    height: 3px;
    border-radius: 2px;
}

.taot-registration-form .tutor-password-strength-hint .text {
    font-size: 11px;
    margin-top: 3px;
}

/* ===========================================================
   RWD
   =========================================================== */
@media (max-width: 540px) {
    .taot-registration-page {
        padding: 24px 12px 40px;
    }

    .taot-registration-wrap {
        max-width: 100%;
    }

    .taot-registration-card {
        padding: 22px 18px 18px;
        border-radius: 8px;
    }

    .taot-registration-title {
        font-size: 20px;
    }

    .taot-registration-subtitle {
        font-size: 13px;
    }

    /* 小螢幕: 雙欄變單欄 */
    .taot-registration-form .tutor-form-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
