/* Simple clean styling - responsive */
.st-wrapper { max-width: 920px; margin: 36px auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; padding: 0 16px; }

/* Hide WordPress page titles on authentication pages */
body.page .entry-title,
body.page .page-title,
body.page h1.entry-title,
body.page h1.page-title,
body.single .entry-title,
body.single .page-title,
.entry-header .entry-title,
.page-header .page-title,
.entry-header,
.page-header {
    display: none !important;
}

/* Ensure authentication forms are properly centered without page titles */
body.page .entry-content,
body.single .entry-content,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== Track Shipment top bar ===== */
.st-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}
.st-topbar-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}
.st-topbar-icon { font-size: 24px; }
.st-topbar-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.st-topbar-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}

.st-page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 20px;
    box-sizing: border-box;
    width: 100%;
}

/* ===== Hero search card ===== */
.st-hero {
    background: rgba(255, 255, 255, 0.98);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.st-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
}
.st-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}
.st-hero h2 { margin: 0 0 10px; font-size: 30px; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.st-hero-subtitle { color: #64748b; font-size: 15.5px; line-height: 1.6; margin: 0 0 30px; }
.st-hero-note { color: #dc2626; font-weight: 600; }

.st-search { display: flex; gap: 12px; align-items: stretch; }
.st-search-input-wrap { position: relative; flex: 1; }
.st-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.st-search input[type="text"] {
    width: 100%;
    padding: 16px 18px 16px 48px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    font-size: 15.5px;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    background: #f8fafc;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.st-search input[type="text"]::placeholder { color: #94a3b8; font-weight: 400; }
.st-search input[type="text"]:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.st-search button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 15.5px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.st-search button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, 0.4); }
.st-search button:active { transform: translateY(0); }

/* ===== Result card ===== */
.st-result { margin-top: 24px; }
.st-card {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    padding: 30px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    text-align: left;
}
.st-card h3 { margin: 0 0 14px; font-size: 20px; color: #0f172a; font-weight: 700; }
.st-card h4 { margin: 22px 0 10px; font-size: 13px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.st-card p { margin: 8px 0; color: #475569; font-size: 15px; }

.st-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.3px; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-transit { background: #dbeafe; color: #1e40af; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-default { background: #f3f4f6; color: #374151; }

.st-history { list-style: none; margin: 0; padding: 0; }
.st-history li {
    position: relative;
    margin-left: 6px;
    padding: 4px 0 18px 24px;
    border-left: 2px solid #e2e8f0;
    color: #374151;
    font-size: 14.5px;
}
.st-history li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4f46e5;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #4f46e5;
}
.st-history li:last-child { border-left-color: transparent; padding-bottom: 0; }

.hidden { display: none; }

/* responsive */
@media (max-width: 700px) {
    .st-topbar { padding: 16px 20px; }
    .st-page-content { padding: 32px 16px; }
    .st-hero { padding: 36px 24px; }
    .st-search { flex-direction: column; }
    .st-search button { width: 100%; justify-content: center; }
}
/* ===== Navbar ===== */
.st-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b; /* dark blue */
    padding: 14px 24px;
    color: #fff;
    margin-bottom: 24px;
}
.st-logo {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.st-nav-right {
    display: flex;
    gap: 12px;
}
.st-btn {
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}
.st-btn:hover { background: #2563eb; }
.st-btn.st-logout { background: #ef4444; }
.st-btn.st-logout:hover { background: #dc2626; }

@media (max-width: 640px) {
    .st-navbar { flex-direction: column; align-items: flex-start; }
    .st-nav-right { margin-top: 8px; flex-wrap: wrap; }
}
/* ===== Modern Login Form Styles with User-Friendly Colors ===== */
.st-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
}

.st-login-form {
    max-width: 420px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.st-login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
    border-radius: 20px 20px 0 0;
}

.st-login-header {
    text-align: center;
    margin-bottom: 35px;
}

.st-login-header h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 50%, #06b6d4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.8px;
    text-shadow: none;
}

.st-login-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
}

.st-login-form-inner {
    margin-bottom: 24px;
}

.st-form-group {
    margin-bottom: 24px;
}

.st-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.st-input-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.st-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
    transition: color 0.3s ease;
}

.st-input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
    font-weight: 500;
}

.st-input-wrapper input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(79, 70, 229, 0.1),
        0 4px 20px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.st-input-wrapper input:focus + .st-input-icon,
.st-input-wrapper:focus-within .st-input-icon {
    color: #4f46e5;
}

.st-input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.st-input-wrapper--has-toggle input {
    padding-right: 48px;
}

.st-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #94a3b8;
    z-index: 2;
    transition: color 0.25s ease;
}

.st-password-toggle:hover {
    color: #4f46e5;
}

.st-forgot-inline {
    display: block;
    text-align: right;
    margin: -12px 0 24px;
}

.st-forgot-inline a {
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.st-forgot-inline a:hover {
    text-decoration: underline;
}

.st-register-link {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.st-register-link:hover {
    text-decoration: underline;
}

/* Fills the viewport edge-to-edge on our dedicated auth/tracking pages */
body.investack-blank-canvas {
    margin: 0;
}

/* ===== Register page extras ===== */
.st-email-status {
    font-size: 12.5px;
    font-weight: 600;
    margin: -18px 0 18px;
    display: none;
}
.st-email-status.is-valid { color: #10b981; display: block; }
.st-email-status.is-invalid { color: #ef4444; display: block; }

.st-password-requirements {
    margin: -14px 0 20px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 14px;
}
.st-requirement {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.st-requirement.is-met { color: #10b981; }

.st-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 13.5px;
    color: #64748b;
    margin: 4px 0 24px;
    line-height: 1.5;
}
.st-terms-row input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    flex-shrink: 0;
}
.st-terms-row a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}
.st-terms-row a:hover { text-decoration: underline; }

.st-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.st-message.success { background: #f0fdf4; border: 2px solid #4ade80; color: #166534; }
.st-message.error { background: #fef2f2; border: 2px solid #f87171; color: #dc2626; }
.st-message.warning { background: #fffbeb; border: 2px solid #fbbf24; color: #92400e; }

/* ===== OTP verification page ===== */
.st-otp-timer {
    text-align: center;
    font-weight: 700;
    color: #ef4444;
    font-size: 14px;
    margin: -8px 0 24px;
}

.st-otp-input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.25s ease;
}
.st-otp-input::placeholder { letter-spacing: 10px; color: #cbd5e1; }
.st-otp-input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.st-resend-link {
    background: none;
    border: none;
    color: #4f46e5;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.st-resend-link:hover { color: #4338ca; }
.st-resend-link:disabled { color: #9ca3af; cursor: not-allowed; text-decoration: none; }

.st-resend-timer {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.st-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 30px rgba(79, 70, 229, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.st-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(79, 70, 229, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #3730a3 0%, #0891b2 100%);
}

.st-login-btn:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.st-login-btn svg {
    transition: transform 0.3s ease;
}

.st-login-btn:hover svg {
    transform: translateX(2px);
}

.st-login-footer {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
    margin-top: 24px;
}

.st-forgot-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.st-forgot-link:hover {
    color: #3730a3;
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.st-forgot-link svg {
    transition: transform 0.3s ease;
}

.st-forgot-link:hover svg {
    transform: rotate(180deg);
}

/* Error messages styling with better colors */
.st-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fdf2f8 100%);
    border: 2px solid #f87171;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.15);
    position: relative;
    overflow: hidden;
}

.st-error::before {
    content: '⚠️';
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.st-error::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #dc2626, #f87171);
}

/* Responsive design with better breakpoints */
@media (max-width: 480px) {
    .st-login-container {
        padding: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .st-login-form {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .st-login-header h2 {
        font-size: 28px;
    }
    
    .st-input-wrapper input {
        padding: 14px 14px 14px 48px;
        font-size: 15px;
    }
    
    .st-login-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .st-input-icon {
        left: 14px;
    }
    
}

/* Enhanced focus indicators for accessibility */
.st-login-form *:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Loading state for form submission with better animations */
.st-login-btn.loading {
    opacity: 0.9;
    cursor: not-allowed;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

.st-login-btn.loading span {
    opacity: 0;
}

.st-login-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message styling */
.st-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #4ade80;
    color: #166534;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.15);
    position: relative;
    overflow: hidden;
}

.st-success::before {
    content: '✅';
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(22, 101, 52, 0.2));
}

.st-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #166534, #4ade80);
}



