/* Wat Login – โทนแดง-ทอง เข้าชุดกับการ์ดเจ้าอาวาส (prefix .watl เพื่อไม่ชนกับธีม) */
.watl { font-family: 'Sarabun', Tahoma, sans-serif; max-width: 440px; margin: 0 auto; }
.watl *, .watl *::before, .watl *::after { box-sizing: border-box; }

/* ===== แถบหัวข้อ (เหมือน .aow-title) ===== */
.watl-banner {
    background: linear-gradient(180deg, #c2262f 0%, #8f1420 55%, #6e0f19 100%);
    border: 3px solid #d4af37; border-radius: 14px;
    padding: 10px 12px; margin: 0 0 16px;
    box-shadow: 0 4px 10px rgba(140,20,30,0.4), inset 0 2px 4px rgba(255,215,120,0.35);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.watl .watl-banner-title {
    margin: 0; padding: 0; border: 0; line-height: 1.3;
    color: #ffe9a8; font-size: 22px; font-weight: 700; letter-spacing: 1px;
    text-shadow: 1px 2px 3px rgba(60,5,10,0.7); white-space: nowrap;
}
.watl-kanok { width: 22px; height: 22px; flex-shrink: 0; }

/* ===== การ์ด (เหมือน .aow-card) ===== */
.watl-card {
    background: linear-gradient(180deg, #fff8ea 0%, #fdeecb 100%);
    border-radius: 18px; border: 1px solid rgba(212,175,55,0.45);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    overflow: hidden;
}

/* ===== แท็บบทบาท ===== */
.watl-tabs { display: flex; border-bottom: 2px solid #d4af37; background: rgba(255,255,255,0.35); }
.watl .watl-tab {
    flex: 1; padding: 11px 6px; text-align: center;
    font-size: 0.85rem; font-weight: 600; color: #8a6a3a;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all 0.2s; text-decoration: none; box-shadow: none;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.watl .watl-tab i { font-size: 1.1rem; }
.watl .watl-tab:hover { color: #8f1420; background: rgba(194,38,47,0.05); }
.watl .watl-tab.is-active { color: #8f1420; border-bottom-color: #c2262f; background: #fff8ea; }

/* ===== ฟอร์ม ===== */
.watl-body { padding: 1.4rem 1.5rem 1.6rem; }
.watl-group { margin-bottom: 0.9rem; }
.watl-label { font-size: 0.85rem; font-weight: 600; color: #6e0f19; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.watl-label i { color: #c99a3c; font-size: 0.9rem; }
.watl-input-wrap { position: relative; }
.watl-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #c99a3c; font-size: 0.95rem; pointer-events: none; }
.watl .watl-input {
    width: 100%; max-width: none; margin: 0; padding: 10px 12px 10px 36px; height: auto;
    border: 1.5px solid #e2c98a; border-radius: 10px;
    font-size: 0.95rem; color: #2C1F00; background: #FFFFFF; box-shadow: none;
    outline: none; transition: all 0.2s; font-family: inherit;
}
.watl .watl-input:focus { border-color: #c2262f; box-shadow: 0 0 0 3px rgba(194,38,47,0.12); }

.watl-forgot { text-align: right; font-size: 0.8rem; margin-top: 6px; }
.watl .watl-forgot a, .watl .watl-register a { color: #a3172a; text-decoration: none; font-weight: 600; box-shadow: none; }
.watl .watl-forgot a:hover, .watl .watl-register a:hover { text-decoration: underline; }

/* ===== ปุ่ม (เหมือน .aow-name) ===== */
.watl .watl-btn {
    width: 100%; padding: 10px 16px; margin-top: 6px; cursor: pointer;
    background: linear-gradient(180deg, #c2262f 0%, #8f1420 55%, #6e0f19 100%);
    border: 3px solid #d4af37; border-radius: 12px;
    color: #ffe9a8; font-size: 1rem; font-weight: 700; letter-spacing: 0.03em; font-family: inherit;
    text-shadow: 1px 1px 2px rgba(60,5,10,0.7);
    box-shadow: 0 4px 10px rgba(140,20,30,0.4), inset 0 2px 4px rgba(255,215,120,0.35);
    transition: filter 0.2s, transform 0.1s;
}
.watl .watl-btn:hover { filter: brightness(1.1); }
.watl .watl-btn:active { transform: translateY(1px); }

.watl-alert {
    display: flex; align-items: center; gap: 8px; margin-bottom: 1rem;
    padding: 10px 14px; border-radius: 10px; font-size: 0.88rem;
    background: #FDECEA; color: #8A1C1C; border: 1px solid #F5C2C0;
}

/* เส้นคั่นไล่สีทอง (เหมือน .aow-divider) */
.watl-divider { height: 1px; margin: 1.1rem 0; background: linear-gradient(90deg, transparent, #c99a3c, transparent); }
.watl-register { text-align: center; color: #8a6a3a; font-size: 0.88rem; }

@media (max-width: 400px) {
    .watl .watl-banner-title { font-size: 19px; }
    .watl-body { padding: 1.2rem 1.1rem 1.4rem; }
}
