/* ===== OVERLAY ===== */
.containTaikhoan {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.22s ease;
}

.tk-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(4px);
}

/* ===== CARD ===== */
.tk-card {
    position: relative;
    background: #1e1e1e;
    border-radius: 18px;
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    z-index: 1;
    animation: tkFadeIn 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes tkFadeIn {
    from { opacity: 0; transform: translateY(-18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== CLOSE ===== */
.tk-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #2a2a2a;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.tk-close:hover { background: #c0392b; color: #fff; }

/* ===== BRAND ===== */
.tk-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}
.tk-brand i {
    font-size: 26px;
    color: #c0392b;
    background: #2a1515;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-brand span {
    font-size: 22px;
    font-weight: 800;
    color: #f0f0f0;
    letter-spacing: 0.2px;
}

/* ===== TABS ===== */
.tk-tabs {
    display: flex;
    background: #252525;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}
.tk-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #777;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}
.tk-tab.active {
    background: #1e1e1e;
    color: #e74c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ===== INPUT FIELDS ===== */
.tk-field {
    position: relative;
    margin-bottom: 14px;
}
.tk-field > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c0c0;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}
.tk-field input,
.tk-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #333;
    border-radius: 10px;
    font-size: 14px;
    color: #f0f0f0;
    background: #2a2a2a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: Arial, Helvetica, sans-serif;
}
.tk-field input:focus,
.tk-field select:focus {
    border-color: #c0392b;
    background: #2e2e2e;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}
.tk-field input:focus + i,
.tk-field:focus-within > i {
    color: #c0392b;
}
.tk-field input::placeholder {
    color: #666;
}

/* 2-column row */
.tk-row2 {
    display: flex;
    gap: 10px;
}
.tk-row2 .tk-field { flex: 1; min-width: 0; }

/* ===== SUBMIT BUTTON ===== */
.tk-btn {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.12s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
}
.tk-btn:hover {
    opacity: 0.93;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.55);
}
.tk-btn:active { transform: scale(0.98); }

/* ===== FOOTER SWITCH TEXT ===== */
.tk-footer-text {
    text-align: center;
    margin: 18px 0 0;
    font-size: 13px;
    color: #777;
}
.tk-footer-text a {
    color: #e74c3c;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.tk-footer-text a:hover { text-decoration: underline; }

/* Date picker */
.tk-field input[type="date"] {
    color: #d0d0d0;
    cursor: pointer;
    color-scheme: dark;
}
.tk-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}
