/* ═══ AUTH PAGE ═══════════════════════════════════════════ */
.tps-auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background: linear-gradient(135deg, #0f2544 0%, #1a3c5e 50%, #1e5799 100%);
}

.tps-auth-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    overflow: hidden;
}

.tps-auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.tps-auth-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: #f8f9fa;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    color: #666;
}

.tps-auth-tab.active {
    background: #fff;
    color: #1a3c5e;
    border-bottom: 3px solid #1a3c5e;
}

.tps-tab-pane { display: none; padding: 30px; }
.tps-tab-pane.active { display: block; }

.tps-auth-header { text-align: center; margin-bottom: 24px; }
.tps-auth-header h2 { color: #1a3c5e; margin: 0 0 6px; font-size: 22px; }
.tps-auth-header p  { color: #888; margin: 0; font-size: 14px; }

/* Fields */
.tps-field { margin-bottom: 16px; }
.tps-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.tps-field input[type=text],
.tps-field input[type=email],
.tps-field input[type=password],
.tps-field input[type=tel] {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.tps-field input:focus {
    outline: none;
    border-color: #1a3c5e;
    box-shadow: 0 0 0 3px rgba(26,60,94,.08);
}
.tps-field small { display: block; color: #999; font-size: 11px; margin-top: 3px; }

.tps-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tps-pw-wrap { position: relative; display: flex; }
.tps-pw-wrap input { flex: 1; border-radius: 8px 0 0 8px !important; }
.tps-eye {
    padding: 0 12px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 15px;
}

.tps-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 13px !important;
    color: #555 !important;
}

/* Buttons */
.tps-btn-primary {
    display: block;
    width: 100%;
    padding: 13px;
    background: #1a3c5e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-align: center;
    text-decoration: none;
}
.tps-btn-primary:hover { background: #0f2b47; transform: translateY(-1px); }

.tps-auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}
.tps-auth-switch button {
    background: none;
    border: none;
    color: #1a3c5e;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

.tps-link { color: #e74c3c; font-size: 13px; text-decoration: none; }
.tps-field-row.tps-between { justify-content: space-between; align-items: center; }

/* Alert messages */
.tps-msg {
    padding: 11px 14px;
    border-radius: 7px;
    margin-bottom: 14px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.tps-msg-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.tps-msg-error   { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.tps-msg-info    { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }

@media (max-width: 540px) {
    .tps-field-row { grid-template-columns: 1fr; }
    .tps-auth-box  { border-radius: 12px; }
    .tps-tab-pane  { padding: 20px; }
}