/* TinHocKonTum — Auth & Profile Styles v2 */

/* ── WRAP ── */
.thkt-auth-page-wrap{min-height:80vh;display:flex;align-items:flex-start;justify-content:center;padding:48px 20px 80px}
.thkt-auth-outer{display:flex;gap:28px;width:100%;max-width:880px;align-items:flex-start}
.thkt-auth-card{background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:20px;padding:36px 40px;flex:1;min-width:0}
@media(max-width:640px){.thkt-auth-card{padding:28px 22px;border-radius:16px}.thkt-auth-page-wrap{padding:24px 14px 60px}}

/* ── FEATURES SIDEBAR ── */
.thkt-auth-features{display:flex;flex-direction:column;gap:14px;min-width:220px;padding-top:12px}
@media(max-width:700px){.thkt-auth-features{display:none}}
.thkt-feature-item{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--color-text-secondary);line-height:1.4}
.thkt-feature-icon{width:34px;height:34px;min-width:34px;border-radius:9px;background:#eff6ff;display:flex;align-items:center;justify-content:center;color:#2563eb;font-size:16px}

/* ── BRAND ── */
.thkt-auth-brand{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:24px}
.thkt-auth-logo{width:42px;height:42px;background:#2563eb;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.thkt-auth-site-name{font-size:16px;font-weight:500;color:var(--color-text-primary);line-height:1.2}
.thkt-auth-site-tag{font-size:11px;color:var(--color-text-secondary);margin-top:2px}

/* ── TABS ── */
.thkt-auth-tabs{display:flex;border:0.5px solid var(--color-border-secondary);border-radius:12px;overflow:hidden;margin-bottom:26px}
.thkt-auth-tab{flex:1;padding:11px 10px;font-size:14px;font-weight:500;border:none;background:transparent;cursor:pointer;color:var(--color-text-secondary);transition:.18s;font-family:inherit}
.thkt-auth-tab.active{background:#2563eb;color:#fff}
.thkt-auth-tab:hover:not(.active){background:var(--color-background-secondary)}

/* ── TITLE ── */
.thkt-auth-title{font-size:20px;font-weight:500;text-align:center;margin-bottom:5px;color:var(--color-text-primary)}
.thkt-auth-subtitle{font-size:13px;color:var(--color-text-secondary);text-align:center;margin-bottom:22px;line-height:1.55}

/* ── ALERTS ── */
.thkt-alert{display:flex;align-items:flex-start;gap:9px;padding:11px 14px;border-radius:10px;font-size:13px;margin-bottom:16px;line-height:1.5}
.thkt-alert i{font-size:16px;flex-shrink:0;margin-top:1px}
.thkt-alert-success{background:var(--color-background-success);color:var(--color-text-success);border:0.5px solid var(--color-border-success)}
.thkt-alert-error{background:var(--color-background-danger);color:var(--color-text-danger);border:0.5px solid var(--color-border-danger)}
.thkt-alert-info{background:var(--color-background-info);color:var(--color-text-info);border:0.5px solid var(--color-border-info)}

/* ── AVATAR UPLOAD ── */
.thkt-avatar-upload{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:22px;cursor:pointer}
.thkt-avatar-circle{width:72px;height:72px;border-radius:50%;background:var(--color-background-secondary);border:1.5px dashed var(--color-border-secondary);display:flex;align-items:center;justify-content:center;overflow:hidden;transition:.15s}
.thkt-avatar-upload:hover .thkt-avatar-circle{border-color:#2563eb;background:#eff6ff}
.thkt-avatar-upload span{font-size:13px;font-weight:500;color:var(--color-text-secondary)}
.thkt-avatar-upload small{font-size:11px;color:var(--color-text-secondary)}

/* ── GRID ── */
.thkt-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:480px){.thkt-grid2{grid-template-columns:1fr}}

/* ── FIELDS ── */
.thkt-field{margin-bottom:14px}
.thkt-field label{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:var(--color-text-secondary);margin-bottom:5px}
.thkt-field label i{font-size:14px}
.thkt-field input,.thkt-field select,.thkt-field textarea{width:100%;padding:10px 14px;border:0.5px solid var(--color-border-secondary);border-radius:10px;font-size:14px;background:var(--color-background-primary);color:var(--color-text-primary);outline:none;transition:.15s;font-family:inherit}
.thkt-field input:focus,.thkt-field select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.thkt-field input.thkt-input-err{border-color:var(--color-border-danger)!important;box-shadow:0 0 0 3px rgba(220,38,38,.08)!important}
.thkt-field input[disabled]{opacity:.55;cursor:not-allowed}
.thkt-field-err{font-size:11px;color:var(--color-text-danger);margin-top:4px;display:flex;align-items:center;gap:4px}

/* ── INPUT WITH EYE ── */
.thkt-input-wrap{position:relative}
.thkt-input-wrap input{padding-right:42px}
.thkt-eye-btn{position:absolute;right:11px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-secondary);padding:3px;font-size:16px;line-height:1;transition:.15s}
.thkt-eye-btn:hover{color:var(--color-text-primary)}

/* ── PASSWORD STRENGTH ── */
.thkt-pw-strength{margin-top:6px;display:flex;align-items:center;gap:8px}
.thkt-pw-bar{flex:1;height:4px;background:var(--color-border-tertiary);border-radius:2px;overflow:hidden}
.thkt-pw-fill{height:100%;border-radius:2px;transition:width .3s,background .3s;width:0}
.thkt-pw-label{font-size:11px;min-width:72px;text-align:right}

/* ── CAP CHIPS ── */
.thkt-cap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:5px}
.thkt-cap-chip{display:flex;flex-direction:column;align-items:center;gap:5px;padding:13px 8px 10px;border:0.5px solid var(--color-border-secondary);border-radius:12px;cursor:pointer;transition:.15s;text-align:center;user-select:none}
.thkt-cap-chip:hover{border-color:#2563eb;background:var(--color-background-info)}
.thkt-cap-chip.active{border-color:#2563eb;background:#eff6ff}
.thkt-cap-chip.active .cc-label{color:#1e40af;font-weight:500}
.thkt-cap-chip.active .cc-sub{color:#2563eb}
.thkt-cap-chip i{font-size:22px;color:var(--color-text-secondary)}
.thkt-cap-chip.active i{color:#2563eb}
.cc-label{font-size:13px;font-weight:500;color:var(--color-text-primary)}
.cc-sub{font-size:11px;color:var(--color-text-secondary)}

/* ── REMEMBER ROW ── */
.thkt-auth-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.thkt-checkbox-label{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--color-text-secondary);cursor:pointer}
.thkt-checkbox-label input[type=checkbox]{width:15px;height:15px;accent-color:#2563eb}
.thkt-text-btn{background:none;border:none;cursor:pointer;color:#2563eb;font-size:13px;padding:0;font-family:inherit;transition:.15s}
.thkt-text-btn:hover{text-decoration:underline}

/* ── SUBMIT ── */
.thkt-submit-btn{width:100%;padding:13px;background:#2563eb;color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:500;cursor:pointer;transition:.18s;display:flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;margin-top:4px}
.thkt-submit-btn:hover{background:#1e40af}
.thkt-submit-btn:disabled{opacity:.55;cursor:not-allowed}

/* ── LINKS ── */
.thkt-link-btn{background:none;border:none;cursor:pointer;color:#2563eb;font-size:13px;font-weight:500;padding:0;font-family:inherit}
.thkt-link-btn:hover{text-decoration:underline}
.thkt-switch-row{text-align:center;font-size:13px;color:var(--color-text-secondary);margin-top:18px}
.thkt-terms-note{font-size:11px;color:var(--color-text-secondary);text-align:center;margin-top:12px;line-height:1.7}
.thkt-terms-note a{color:#2563eb;text-decoration:none}
.thkt-back-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;color:var(--color-text-secondary);font-size:13px;padding:0;margin-bottom:18px;font-family:inherit}
.thkt-back-btn:hover{color:var(--color-text-primary)}

/* ── SPINNERS ── */
.thkt-spinner-sm{width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:thkt-spin .6s linear infinite;flex-shrink:0}
.thkt-spinner-lg{width:40px;height:40px;border:3px solid var(--color-border-tertiary);border-top-color:#2563eb;border-radius:50%;animation:thkt-spin .7s linear infinite;margin:0 auto}
@keyframes thkt-spin{to{transform:rotate(360deg)}}
.thkt-success-card{text-align:center;padding:48px 32px}
.thkt-success-icon{font-size:56px;color:#059669;display:block;margin-bottom:4px}

/* ── HEADER USER MENU ── */
.thkt-header-user{position:relative}
.thkt-user-menu-btn{display:flex;align-items:center;gap:8px;background:none;border:0.5px solid var(--color-border,#e2e8f0);border-radius:50px;padding:5px 12px 5px 5px;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;color:inherit;transition:.15s}
.thkt-user-menu-btn:hover{background:var(--color-background-secondary,#f8fafc)}
.thkt-header-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}
.thkt-user-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.thkt-user-dropdown{display:none;position:absolute;top:calc(100% + 8px);right:0;background:var(--color-background-primary,#fff);border:0.5px solid var(--color-border-secondary,#e2e8f0);border-radius:14px;padding:8px;min-width:200px;box-shadow:0 8px 24px rgba(0,0,0,.1);z-index:9999}
.thkt-user-dropdown.open{display:block}
.thkt-user-dropdown a{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:8px;font-size:13px;color:var(--color-text-primary,#1e293b);text-decoration:none;transition:.12s}
.thkt-user-dropdown a:hover{background:var(--color-background-secondary,#f8fafc)}
.thkt-user-dropdown a i{font-size:16px;color:var(--color-text-secondary,#64748b)}
.thkt-user-dropdown a.danger-link{color:#dc2626}
.thkt-user-dropdown a.danger-link i{color:#dc2626}
.thkt-dropdown-divider{height:0.5px;background:var(--color-border-tertiary,#f1f5f9);margin:6px 0}

/* ── LOGGED-IN BOX (shortcode) ── */
.thkt-logged-in-box{display:flex;align-items:center;gap:14px;padding:16px 20px;background:var(--color-background-secondary);border-radius:14px;flex-wrap:wrap}
.thkt-avatar-img{border-radius:50%;width:48px;height:48px;object-fit:cover}
.thkt-user-info h3{font-size:14px;font-weight:500;margin:0 0 2px}
.thkt-user-info p{font-size:12px;color:var(--color-text-secondary);margin:0}
.thkt-user-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}
.thkt-btn-outline{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:0.5px solid var(--color-border-secondary);border-radius:50px;font-size:13px;font-weight:500;cursor:pointer;background:var(--color-background-primary);color:var(--color-text-primary);text-decoration:none;transition:.15s}
.thkt-btn-outline:hover{background:var(--color-background-secondary)}
.thkt-btn-outline.danger{color:#dc2626;border-color:#fecaca}
.thkt-btn-outline.danger:hover{background:#fef2f2}

/* ── PROFILE ── */
.thkt-profile-wrap{max-width:640px}
.thkt-profile-header{display:flex;align-items:center;gap:16px;padding:20px;background:var(--color-background-secondary);border-radius:16px;margin-bottom:20px;flex-wrap:wrap}
.thkt-profile-avatar{width:64px;height:64px;min-width:64px;border-radius:50%;background:#eff6ff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:500;color:#2563eb;overflow:hidden}
.thkt-profile-avatar img{width:100%;height:100%;object-fit:cover}
.thkt-profile-badge{display:inline-flex;padding:2px 10px;border-radius:50px;font-size:11px;font-weight:500;background:var(--color-background-info);color:var(--color-text-info)}
.thkt-profile-section{background:var(--color-background-primary);border:0.5px solid var(--color-border-tertiary);border-radius:14px;padding:20px;margin-bottom:16px}
.thkt-profile-section h3{font-size:14px;font-weight:500;margin-bottom:16px;color:var(--color-text-primary);display:flex;align-items:center;gap:7px}
.thkt-profile-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
