@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ==========================================
   BODY - Center everything
========================================== */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5ebe0;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
}

/* ==========================================
   CONTAINER - Main card
========================================== */
.container {
    position: relative;
    width: 850px;
    height: 550px;
    max-height: 85vh;
    background: #f7ebd8;
    border: 2px solid #6b1423;
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(107, 20, 35, 0.4),
        0 0 60px rgba(107, 20, 35, 0.2);
}

/* ==========================================
   FORM AREAS
========================================== */
.form-box {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a1f24;
    text-align: center;
    transition: .8s ease;
    z-index: 1;
}

.form-box form {
    width: 100%;
}

/* Login on RIGHT */
.form-box.login {
    left: 50%;
    padding: 40px;
}

/* Register on LEFT (hidden initially) */
.form-box.register {
    left: 0;
    padding: 40px;
    opacity: 0;
}

/* ==========================================
   HEADINGS
========================================== */
h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #4a1f24;
}

/* ==========================================
   INPUT BOXES
========================================== */
.input-box {
    position: relative;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid #a13f4e;
    border-radius: 40px;
    outline: none;
    color: #4a1f24;
    padding: 0 45px 0 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-box input::placeholder {
    color: #8a6d53;
}

.input-box input:focus {
    box-shadow: 0 0 20px #7a1c2d;
    border-color: #7a1c2d;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a13f4e;
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    width: 100%;
    height: 48px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    background: #8c2d3f;
    color: #fff7e8;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 0 20px #7a1c2d;
    transition: .3s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px #7a1c2d;
}

/* ==========================================
   FORGOT PASSWORD LINK
========================================== */
.forgot-link {
    margin-bottom: 20px;
    text-align: right;
}

.forgot-link a {
    color: #4a1f24;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-link a:hover {
    color: #8c2d3f;
    text-decoration: underline;
}

/* ==========================================
   SOCIAL ICONS
========================================== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border: 2px solid #a13f4e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a13f4e;
    transition: .4s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #8c2d3f;
    color: #fff7e8;
    transform: rotate(360deg);
    border-color: #8c2d3f;
}

.form-box p {
    color: #6b5c54;
    font-size: 14px;
    margin: 20px 0 10px 0;
}

/* ==========================================
   TOGGLE PANEL (Sliding maroon panel)
========================================== */
.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before {
    content: "";
    position: absolute;
    width: 300%;
    height: 100%;
    left: -250%;
    background: #5f1420;
    border-radius: 150px;
    transition: 1.3s ease;
    z-index: 2;
}

/* Panel Text */
.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff7e8;
    z-index: 3;
    transition: .8s ease;
    padding: 20px;
}

.toggle-left {
    left: 0;
}

.toggle-right {
    right: -50%;
}

.toggle-panel h1 {
    color: #fff7e8;
    font-size: 32px;
    margin-bottom: 10px;
}

.toggle-panel p {
    color: #e8d5c4;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.toggle-panel .btn {
    width: 170px;
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
    transition: .3s ease;
}

.toggle-panel .btn:hover {
    background: #fff7e8;
    color: #7a2231;
    transform: scale(1.05);
}

/* ==========================================
   ACTIVE ANIMATION - Slide the panels
========================================== */
.container.active .form-box.login {
    left: 100%;
    opacity: 0;
}

.container.active .form-box.register {
    left: 0;
    opacity: 1;
}

.container.active .toggle-box::before {
    left: 50%;
}

.container.active .toggle-left {
    left: -50%;
}

.container.active .toggle-right {
    right: 0;
}

/* ==========================================
   FORM POP UP ANIMATION
========================================== */
.form-box h1,
.form-box .input-box,
.form-box .btn,
.form-box p,
.form-box .social-icons {
    animation: slideUp .8s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 850px) {
    .container {
        width: 95%;
        height: auto;
        min-height: 600px;
        max-height: none;
        border-radius: 20px;
    }

    .form-box {
        width: 100%;
        position: relative;
        padding: 30px 20px;
        height: auto;
        min-height: 400px;
    }

    .form-box.login {
        left: 0;
        padding: 30px 20px;
    }

    .form-box.register {
        left: 0;
        padding: 30px 20px;
        opacity: 0;
        display: none;
    }

    .container.active .form-box.login {
        left: 0;
        opacity: 0;
        display: none;
    }

    .container.active .form-box.register {
        left: 0;
        opacity: 1;
        display: flex;
    }

    .toggle-box {
        position: relative;
        height: auto;
        min-height: 200px;
    }

    .toggle-box::before {
        display: none;
    }

    .toggle-panel {
        position: relative;
        width: 100%;
        padding: 30px 20px;
        background: #5f1420;
        border-radius: 0 0 20px 20px;
        color: #fff7e8;
        min-height: 200px;
    }

    .toggle-left {
        display: block;
    }

    .toggle-right {
        display: none;
    }

    .container.active .toggle-left {
        display: none;
    }

    .container.active .toggle-right {
        display: flex;
        right: 0;
    }

    /* Fix for mobile toggle buttons */
    .toggle-panel .btn {
        width: 100%;
        max-width: 200px;
    }

    .form-box h1 {
        font-size: 28px;
    }

    .input-box input {
        height: 45px;
        font-size: 14px;
    }

    .btn {
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        border-radius: 15px;
    }

    .form-box {
        padding: 20px 15px;
    }

    .form-box h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .input-box {
        margin: 18px 0;
    }

    .input-box input {
        height: 40px;
        font-size: 13px;
        padding: 0 40px 0 15px;
    }

    .btn {
        height: 40px;
        font-size: 13px;
    }

    .toggle-panel h1 {
        font-size: 24px;
    }

    .toggle-panel p {
        font-size: 13px;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .forgot-link a {
        font-size: 12px;
    }
}

/* ==========================================
   EXTRA: Password validation dropdown
========================================== */
.password-wrapper {
    position: relative !important;
    width: 100%;
}

.password-validation-box {
    position: absolute !important;
    top: 105% !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #8c2a38 !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    display: none !important;
}

.password-wrapper:hover .password-validation-box,
.password-wrapper:focus-within .password-validation-box {
    display: block !important;
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.req-item {
    font-size: 11.5px;
    color: #6b5c54;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.req-item i {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.req-item.valid {
    color: #2e7d32 !important;
    font-weight: 600;
}

.req-item.invalid {
    color: #d32f2f !important;
}

.status-msg {
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    display: none;
}

.status-msg.error {
    color: #d32f2f;
    display: block;
}

.status-msg.success {
    color: #2e7d32;
    display: block;
}

/* ==========================================
   EXTRA: Error/Success messages
========================================== */
.errorMessage {
    background: #FEE2E2;
    color: #B91C1C;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #FECACA;
}

.successMessage {
    background: #D1FAE5;
    color: #047857;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #A7F3D0;
}

/* ==========================================
   EXTRA: Reset Password Page Styles
========================================== */
.reset-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80vh;
    padding: 20px;
    box-sizing: border-box;
}

.reset-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    background: #fdf6ec;
    border: 2px solid #5a1e28;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(90, 30, 40, 0.2);
}

.reset-card h1 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #3b1219;
}

.reset-card p {
    margin-bottom: 25px;
    text-align: center;
    font-size: 14px;
    color: #6b5c54;
    line-height: 1.4;
}

.reset-card .input-box {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.reset-card .input-box input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1.5px solid #8c2a38;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.reset-card .input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c2a38;
}

.reset-card .btn {
    width: 100%;
    padding: 14px;
    background: #8c2a38;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(140, 42, 56, 0.4);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.reset-card .btn:hover {
    background: #6e212c;
    transform: scale(1.02);
}

.reset-card .extraLinks {
    margin-top: 20px;
}

.reset-card .extraLinks a {
    font-size: 13px;
    color: #8c2a38;
    text-decoration: none;
    font-weight: 600;
}

.reset-card .extraLinks a:hover {
    text-decoration: underline;
}

/* =========================================================
   SWIFT LOGIN VISUAL REFRESH ONLY
   Scoped to .swift-login-page so other pages using style.css
   keep their existing appearance.
   No login/activation JavaScript is changed.
========================================================= */
.swift-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 15%, rgba(139, 48, 63, 0.16) 0 70px, transparent 71px),
        radial-gradient(circle at 93% 86%, rgba(212, 166, 44, 0.12) 0 95px, transparent 96px),
        #f4e9d9;
}

/* Calm decorative background: visible, but intentionally restrained. */
.swift-login-page::before,
.swift-login-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.swift-login-page::before {
    width: 360px;
    height: 360px;
    left: -210px;
    top: -160px;
    border: 1px solid rgba(107, 20, 35, 0.12);
    box-shadow: 0 0 0 55px rgba(107, 20, 35, 0.035);
}

.swift-login-page::after {
    width: 280px;
    height: 280px;
    right: -160px;
    bottom: -140px;
    border: 1px solid rgba(212, 166, 44, 0.16);
    box-shadow: 0 0 0 45px rgba(107, 20, 35, 0.035);
}

.swift-login-page .container {
    z-index: 2;
    width: min(960px, 92vw);
    height: min(620px, 86vh);
    min-height: 580px;
    background: rgba(255, 250, 241, 0.76);
    border: 1px solid rgba(107, 20, 35, 0.48);
    border-radius: 28px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 24px 55px rgba(70, 31, 29, 0.18),
        0 4px 18px rgba(70, 31, 29, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.72);
}

/* Keep the original 50/50 split; only soften the surfaces. */
.swift-login-page .form-box.login,
.swift-login-page .form-box.register {
    background: rgba(255, 250, 241, 0.38);
}

.swift-login-page .form-box.login {
    padding: 34px 48px;
}

.swift-login-page .form-box.register {
    padding: 34px 48px;
}

.swift-login-page .form-box h1 {
    color: #4a1f24;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.swift-login-page .input-box input {
    background: rgba(255, 252, 246, 0.58);
    border: 1.5px solid rgba(161, 63, 78, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.swift-login-page .input-box input:focus {
    border-color: #8c2d3f;
    box-shadow: 0 0 0 3px rgba(140, 45, 63, 0.10);
}

.swift-login-page .btn {
    background: linear-gradient(100deg, #8c2d3f 0%, #7a1c2d 100%);
    box-shadow: 0 12px 24px rgba(122, 28, 45, 0.20);
}

.swift-login-page .btn:hover {
    box-shadow: 0 15px 28px rgba(122, 28, 45, 0.28);
}

/* Simple, plain social buttons like the approved reference. */
.swift-login-page .social-icons {
    gap: 14px;
    margin-top: 13px;
}

.swift-login-page .social-icons a {
    width: 42px;
    height: 42px;
    border: 1.5px solid #a13f4e;
    background: rgba(255, 250, 241, 0.34);
    color: #a13f4e;
    box-shadow: none;
}

.swift-login-page .social-icons a:hover {
    background: #8c2d3f;
    color: #fff7e8;
    border-color: #8c2d3f;
    transform: translateY(-2px);
}

/* Deep maroon sliding panel — animation rules remain untouched. */
.swift-login-page .toggle-box::before {
    background:
        radial-gradient(circle at 78% 22%, rgba(212,166,44,0.16) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 34%, rgba(255,247,232,0.11) 0 1px, transparent 2px),
        linear-gradient(135deg, rgba(255,255,255,0.035), transparent 32%),
        linear-gradient(155deg, #671522 0%, #5f1420 52%, #4f101b 100%);
    background-size: auto, auto, auto, auto;
    box-shadow: inset -18px 0 40px rgba(0,0,0,0.08);
}

/* Very subtle moving glints, clipped inside the sliding maroon layer. */
.swift-login-page .toggle-box::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -35% -20%;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(255,247,232,0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 32% 64%, rgba(212,166,44,0.45) 0 1px, transparent 2px),
        radial-gradient(circle at 66% 18%, rgba(255,247,232,0.4) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 58%, rgba(212,166,44,0.4) 0 1px, transparent 2px),
        linear-gradient(125deg, transparent 44%, rgba(212,166,44,0.13) 45%, transparent 46%);
    animation: swiftLoginParticles 12s ease-in-out infinite alternate;
    opacity: 0.5;
}

@keyframes swiftLoginParticles {
    from { transform: translate3d(-8px, 5px, 0); opacity: 0.32; }
    to   { transform: translate3d(10px, -8px, 0); opacity: 0.58; }
}

.swift-login-page .toggle-panel {
    padding: 28px;
}

.swift-login-page .toggle-panel h1 {
    color: #fff7e8;
    font-size: 32px;
    margin-bottom: 9px;
}

.swift-login-page .toggle-panel p {
    color: #e8d5c4;
    margin-bottom: 18px;
}

/* Small SWIFT brand mark — no KODAI KAKTEH logo. */
.swift-login-page .swift-mini-logo {
    position: absolute;
    top: 34px;
    left: 38px;
    width: 112px;
    height: 36px;
    display: flex;
    align-items: center;
    z-index: 5;
    opacity: 0.98;
}

.swift-login-page .swift-logo-word {
    position: relative;
    margin-left: 17px;
    color: #fff7e8;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.swift-login-page .swift-logo-word::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: -5px;
    width: 36px;
    height: 2px;
    border-radius: 10px;
    background: #d4a62c;
}

.swift-login-page .swift-logo-leaf {
    position: absolute;
    width: 9px;
    height: 15px;
    left: 58px;
    top: 1px;
    background: #d4a62c;
    border-radius: 100% 0 100% 0;
    transform: rotate(28deg);
}

.swift-login-page .swift-logo-speed {
    position: absolute;
    left: 0;
    height: 3px;
    border-radius: 10px;
    background: #d4a62c;
}

.swift-login-page .speed-1 { width: 18px; top: 13px; }
.swift-login-page .speed-2 { width: 25px; top: 19px; }
.swift-login-page .speed-3 { width: 15px; top: 25px; left: 4px; }

/* Give the welcome content breathing room around the small logo. */
.swift-login-page .toggle-left h1 {
    margin-top: 18px;
}

/* Keep the activation-side content usable after the visual refresh. */
.swift-login-page .toggle-right h1 {
    margin-top: 18px;
}

@media (max-width: 850px) {
    .swift-login-page {
        overflow-y: auto;
    }

    .swift-login-page .container {
        width: 95%;
        height: auto;
        min-height: 480px;
    }

    .swift-login-page .swift-mini-logo {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 8px;
        width: 105px;
        height: 32px;
    }

    .swift-login-page .swift-logo-word {
        font-size: 23px;
    }

    .swift-login-page .toggle-panel h1 {
        margin-top: 4px;
    }
}

/* =========================================================
   SWIFT LOGIN - CLEAN SHAPES / POLISHED VISUAL ONLY
   This section is intentionally limited to the login page.
   Login/activation functionality and the existing .active
   slide animation are not changed.
========================================================= */
.swift-login-page {
    background:
        radial-gradient(circle at 7% 13%, rgba(107, 20, 35, 0.10) 0 78px, transparent 79px),
        radial-gradient(circle at 94% 88%, rgba(212, 166, 44, 0.10) 0 88px, transparent 89px),
        #f4e9d9;
}

/* One shape language: a clean rounded rectangle, not an oval. */
.swift-login-page .container {
    width: min(920px, 92vw);
    height: min(560px, 82vh);
    min-height: 500px;
    border-radius: 20px;
    background: rgba(255, 250, 241, 0.84);
    border: 1px solid rgba(107, 20, 35, 0.40);
    overflow: hidden;
    box-shadow:
        0 22px 45px rgba(70, 31, 29, 0.18),
        0 5px 16px rgba(70, 31, 29, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Keep the form side clean and lightly glassy. */
.swift-login-page .form-box.login,
.swift-login-page .form-box.register {
    background: rgba(255, 252, 246, 0.30);
}

.swift-login-page .form-box.login,
.swift-login-page .form-box.register {
    padding: 38px 48px;
}

/* IMPORTANT: straight sliding surface, clipped by the rounded card.
   This removes the old giant oval/egg-shaped edge. */
.swift-login-page .toggle-box::before {
    background: linear-gradient(135deg, #64101f 0%, #5f1420 55%, #721b2c 100%);
    border-radius: 0;
    box-shadow: inset -18px 0 40px rgba(0, 0, 0, 0.08);
}

/* Very subtle moving light inside the maroon panel. */
.swift-login-page .toggle-box::after {
    content: "";
    position: absolute;
    top: -35%;
    left: -8%;
    width: 34%;
    height: 170%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 44%,
        rgba(212, 166, 44, 0.06) 48%,
        rgba(255, 247, 232, 0.10) 50%,
        rgba(212, 166, 44, 0.04) 52%,
        transparent 56%,
        transparent 100%
    );
    transform: rotate(8deg);
    pointer-events: none;
    z-index: 2;
    animation: swiftPanelShine 7s ease-in-out infinite;
}

@keyframes swiftPanelShine {
    0%, 55% { transform: translateX(-25%) rotate(8deg); opacity: 0.25; }
    75% { transform: translateX(180%) rotate(8deg); opacity: 0.75; }
    100% { transform: translateX(260%) rotate(8deg); opacity: 0.15; }
}

/* Keep the actual text above the decorative shine. */
.swift-login-page .toggle-panel {
    z-index: 4;
}

/* Small SWIFT mark — recognizable but not the main focus. */
.swift-login-page .swift-mini-logo {
    top: 30px;
    left: 32px;
    width: 104px;
    height: 32px;
}

.swift-login-page .swift-logo-word {
    font-size: 23px;
}

.swift-login-page .toggle-left h1 {
    margin-top: 12px;
}

/* Simple outlined social buttons, matching the reference style. */
.swift-login-page .social-icons {
    gap: 16px;
    margin-top: 18px;
}

.swift-login-page .social-icons a {
    width: 44px;
    height: 44px;
    border: 1.5px solid #a13f4e;
    background: rgba(255, 250, 241, 0.18);
    color: #a13f4e;
    box-shadow: none;
}

.swift-login-page .social-icons a:hover {
    background: #8c2d3f;
    color: #fff7e8;
    border-color: #8c2d3f;
}

/* Inputs: clean glass, not pill-heavy. */
.swift-login-page .input-box input {
    background: rgba(255, 252, 246, 0.52);
    border: 1.5px solid rgba(161, 63, 78, 0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.swift-login-page .input-box input:focus {
    border-color: #8c2d3f;
    box-shadow: 0 0 0 3px rgba(140, 45, 63, 0.09);
}

/* Keep mobile behavior intact while removing the giant curved panel. */
@media (max-width: 850px) {
    .swift-login-page .container {
        border-radius: 18px;
    }

    .swift-login-page .toggle-box::before {
        border-radius: 0;
    }

    .swift-login-page .toggle-box::after {
        display: none;
    }
}


/* =========================================================
   SWIFT LOGIN - REFERENCE STYLE DIAGONAL STRIPS
   Visual only. Keeps the existing sliding login animation.
========================================================= */
.swift-login-page .toggle-box::before {
    background:
        repeating-linear-gradient(
            125deg,
            transparent 0px,
            transparent 34px,
            rgba(212, 166, 44, 0.10) 35px,
            rgba(212, 166, 44, 0.10) 37px,
            transparent 38px,
            transparent 76px
        ),
        repeating-linear-gradient(
            125deg,
            transparent 0px,
            transparent 58px,
            rgba(255, 247, 232, 0.055) 59px,
            rgba(255, 247, 232, 0.055) 60px,
            transparent 61px,
            transparent 118px
        ),
        linear-gradient(135deg, #671522 0%, #5f1420 55%, #4f101b 100%);

    background-size: 150px 150px, 230px 230px, auto;
    background-position: 0 0, 0 0, 0 0;
    background-repeat: repeat;

    /* Restore the large curved/oval edge from the original design. */
    border-radius: 0 150px 150px 0;

    box-shadow: inset -18px 0 40px rgba(0, 0, 0, 0.08);
    animation: swiftReferenceStrips 18s linear infinite;
}

@keyframes swiftReferenceStrips {
    from {
        background-position: 0 0, 0 0, 0 0;
    }
    to {
        background-position: 150px 150px, 230px 230px, 0 0;
    }
}

/* Small scattered glints only — no large moving light/beam. */
.swift-login-page .toggle-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.42;
    background:
        radial-gradient(circle at 18% 23%, rgba(255,247,232,0.70) 0 1px, transparent 2px),
        radial-gradient(circle at 31% 68%, rgba(212,166,44,0.65) 0 1px, transparent 2px),
        radial-gradient(circle at 56% 31%, rgba(255,247,232,0.50) 0 1px, transparent 2px),
        radial-gradient(circle at 77% 62%, rgba(212,166,44,0.60) 0 1px, transparent 2px),
        radial-gradient(circle at 88% 19%, rgba(255,247,232,0.45) 0 1px, transparent 2px);
    animation: swiftReferenceGlints 10s ease-in-out infinite alternate;
}

@keyframes swiftReferenceGlints {
    from {
        transform: translate3d(-5px, 3px, 0);
        opacity: 0.28;
    }
    to {
        transform: translate3d(7px, -4px, 0);
        opacity: 0.52;
    }
}

/* Content stays above all decorative layers. */
.swift-login-page .toggle-panel {
    z-index: 4;
}

@media (max-width: 850px) {
    .swift-login-page .toggle-box::before {
        border-radius: 0;
        animation: none;
    }

    .swift-login-page .toggle-box::after {
        display: none;
    }
}

/* =========================================================
   SWIFT LOGIN - REFERENCE STRIP ANIMATION FINAL OVERRIDE
   Thin diagonal lines only. No large glow / beam.
========================================================= */
.swift-login-page .toggle-box::before {
    background-image:
        repeating-linear-gradient(
            125deg,
            transparent 0px,
            transparent 24px,
            rgba(255, 247, 232, 0.10) 25px,
            rgba(255, 247, 232, 0.10) 27px,
            transparent 28px,
            transparent 70px
        ),
        repeating-linear-gradient(
            125deg,
            transparent 0px,
            transparent 48px,
            rgba(212, 166, 44, 0.20) 49px,
            rgba(212, 166, 44, 0.20) 51px,
            transparent 52px,
            transparent 112px
        ),
        repeating-linear-gradient(
            125deg,
            transparent 0px,
            transparent 105px,
            rgba(255, 247, 232, 0.045) 106px,
            rgba(255, 247, 232, 0.045) 107px,
            transparent 108px,
            transparent 165px
        ),
        linear-gradient(135deg, #671522 0%, #5f1420 55%, #4f101b 100%);

    background-size:
        180px 180px,
        260px 260px,
        360px 360px,
        auto;

    background-position:
        0 0,
        0 0,
        0 0,
        0 0;

    background-repeat: repeat;
    border-radius: 0 150px 150px 0;
    animation: swiftStripDrift 11s linear infinite;
}

@keyframes swiftStripDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 180px 180px, 260px 260px, 360px 360px, 0 0;
    }
}

/* Tiny fixed glints, similar to the reference — never a moving beam. */
.swift-login-page .toggle-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,247,232,0.65) 0 1px, transparent 2px),
        radial-gradient(circle at 36% 71%, rgba(212,166,44,0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 62% 30%, rgba(255,247,232,0.45) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 61%, rgba(212,166,44,0.50) 0 1px, transparent 2px);
    opacity: 0.55;
    animation: swiftTinyGlints 6s ease-in-out infinite alternate;
}

@keyframes swiftTinyGlints {
    from { opacity: 0.35; transform: translate(0, 0); }
    to   { opacity: 0.65; transform: translate(4px, -3px); }
}

.swift-login-page .toggle-panel {
    z-index: 4;
}

@media (max-width: 850px) {
    .swift-login-page .toggle-box::before {
        border-radius: 0;
        animation: none;
    }
    .swift-login-page .toggle-box::after {
        display: none;
    }
}


/* =========================================================
   SWIFT LOGIN - FINAL CLEAN MAROON OVAL
   No decorative strip animation. Preserve the original
   curved sliding-panel shape and existing functionality.
========================================================= */
.swift-login-page .toggle-box::before {
    background: linear-gradient(135deg, #64101f 0%, #5f1420 55%, #721b2c 100%);
    border-radius: 150px;
    box-shadow: inset -18px 0 40px rgba(0, 0, 0, 0.08);
    animation: none !important;
}

.swift-login-page .toggle-box::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

@media (max-width: 850px) {
    .swift-login-page .toggle-box::before {
        border-radius: 0 0 20px 20px;
    }
}


/* =========================================================
   SWIFT LOGIN — KODAI KAK TEH THEME COLOUR OVERRIDE
   Based on homepage.zip colour palette.
   Red/maroon + yellow are the primary accents.
   Layout, oval shape and functionality are unchanged.
========================================================= */

.swift-login-page {
    background:
        radial-gradient(circle at 8% 12%, rgba(141, 27, 27, 0.10) 0 75px, transparent 76px),
        radial-gradient(circle at 92% 88%, rgba(249, 168, 37, 0.13) 0 90px, transparent 91px),
        #F5E6C8;
}

.swift-login-page .container {
    background: #FFF8ED;
    border-color: #8D1B1B;
    box-shadow:
        0 22px 45px rgba(62, 39, 35, 0.20),
        0 5px 16px rgba(62, 39, 35, 0.10);
}

/* Form side */
.swift-login-page .form-box.login,
.swift-login-page .form-box.register {
    background: rgba(255, 248, 237, 0.72);
}

.swift-login-page .form-box h1 {
    color: #6D1010;
}

.swift-login-page .input-box input {
    background: #FFF8ED;
    border-color: rgba(141, 27, 27, 0.42);
    color: #3E2723;
}

.swift-login-page .input-box input::placeholder {
    color: #8A6A55;
}

.swift-login-page .input-box input:focus {
    border-color: #F9A825;
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.16);
}

.swift-login-page .input-box i {
    color: #8D1B1B;
}

/* Main login / activate button */
.swift-login-page .btn {
    background: #8D1B1B;
    color: #FFF8ED;
    box-shadow: 0 10px 22px rgba(141, 27, 27, 0.22);
}

.swift-login-page .btn:hover {
    background: #6D1010;
    box-shadow: 0 12px 26px rgba(109, 16, 16, 0.26);
}

/* Social icons */
.swift-login-page .social-icons a {
    border-color: #F9A825;
    background: #FFF8ED;
    color: #8D1B1B;
}

.swift-login-page .social-icons a:hover {
    background: #F9A825;
    color: #6D1010;
    border-color: #F9A825;
}

/* =========================================================
   MAROON OVAL PANEL
========================================================= */

.swift-login-page .toggle-box::before {
    background:
        radial-gradient(circle at 76% 20%, rgba(249, 168, 37, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 24% 78%, rgba(253, 216, 53, 0.08) 0 2px, transparent 3px),
        linear-gradient(135deg, #8D1B1B 0%, #7A111A 48%, #6D1010 100%);
    box-shadow: inset -18px 0 40px rgba(62, 39, 35, 0.14);
}

/* Gold accent on the welcome-side button */
.swift-login-page .toggle-panel .btn {
    border-color: #F9A825;
    color: #F9A825;
    background: transparent;
}

.swift-login-page .toggle-panel .btn:hover {
    background: #F9A825;
    color: #6D1010;
    border-color: #F9A825;
}

.swift-login-page .toggle-panel h1 {
    color: #FFF8ED;
}

.swift-login-page .toggle-panel p {
    color: #F5E6C8;
}

/* SWIFT logo: cream + yellow */
.swift-login-page .swift-logo-word {
    color: #FFF8ED;
}

.swift-login-page .swift-logo-word::after,
.swift-login-page .swift-logo-leaf,
.swift-login-page .swift-logo-speed {
    background: #F9A825;
}

/* Activation information box — warm yellow instead of blue */
.swift-login-page .info-box {
    background: rgba(249, 168, 37, 0.12) !important;
    border-left-color: #F9A825 !important;
    color: #6D1010 !important;
}

/* Forgot password / secondary text */
.swift-login-page a {
    color: #8D1B1B;
}

.swift-login-page a:hover {
    color: #6D1010;
}

/* Keep the existing oval shape exactly as-is */
.swift-login-page .toggle-box::before {
    border-radius: inherit;
}

/* =========================================================
   SWIFT LOGIN — SOFT FLOWING WAVE PATTERN
   Subtle curved movement — no stripes / no shooting beams.
========================================================= */
.swift-login-page .toggle-box::before {
    background:
        /* large soft flowing wave */
        radial-gradient(
            ellipse 520px 250px at 105% 18%,
            transparent 0 57%,
            rgba(249, 168, 37, 0.12) 57.4% 57.8%,
            transparent 58.2% 64%,
            rgba(249, 168, 37, 0.07) 64.4% 64.8%,
            transparent 65.2% 100%
        ),
        /* second curved wave */
        radial-gradient(
            ellipse 600px 330px at 108% 18%,
            transparent 0 61%,
            rgba(255, 248, 237, 0.06) 61.3% 61.7%,
            transparent 62.1% 68%,
            rgba(255, 248, 237, 0.035) 68.3% 68.7%,
            transparent 69.1% 100%
        ),
        /* soft lower wave */
        radial-gradient(
            ellipse 480px 280px at -10% 105%,
            transparent 0 60%,
            rgba(249, 168, 37, 0.08) 60.4% 60.8%,
            transparent 61.2% 68%,
            rgba(255, 248, 237, 0.04) 68.4% 68.8%,
            transparent 69.2% 100%
        ),
        linear-gradient(
            135deg,
            #8D1B1B 0%,
            #7A111A 48%,
            #6D1010 100%
        );

    background-size:
        115% 115%,
        125% 125%,
        110% 110%,
        auto;

    background-position:
        0 0,
        0 0,
        0 0,
        0 0;

    animation: swiftFlowingWaves 14s ease-in-out infinite alternate;
}

@keyframes swiftFlowingWaves {
    0% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0;
    }

    50% {
        background-position:
            -18px 12px,
            22px -10px,
            -14px -8px,
            0 0;
    }

    100% {
        background-position:
            -35px 22px,
            42px -18px,
            -28px -16px,
            0 0;
    }
}

@media (max-width: 850px) {
    .swift-login-page .toggle-box::before {
        animation: none;
    }
}


/* =========================================================
   SWIFT LOGIN — VISIBLE FLOWING WAVE PATTERN FIX
   The previous wave rules were being cancelled by the older
   !important clean-panel override. This final rule intentionally
   overrides it so the waves are actually visible.
========================================================= */
.swift-login-page .toggle-box::before {
    background:
        radial-gradient(ellipse 430px 250px at 100% 8%,
            transparent 0 61%,
            rgba(249, 168, 37, 0.18) 61.4% 61.9%,
            transparent 62.3% 67%,
            rgba(249, 168, 37, 0.10) 67.4% 67.9%,
            transparent 68.3% 100%),
        radial-gradient(ellipse 520px 310px at 108% 12%,
            transparent 0 63%,
            rgba(255, 248, 237, 0.10) 63.4% 63.8%,
            transparent 64.2% 70%,
            rgba(255, 248, 237, 0.055) 70.4% 70.8%,
            transparent 71.2% 100%),
        radial-gradient(ellipse 430px 280px at -8% 100%,
            transparent 0 64%,
            rgba(249, 168, 37, 0.11) 64.4% 64.9%,
            transparent 65.3% 72%,
            rgba(255, 248, 237, 0.06) 72.4% 72.8%,
            transparent 73.2% 100%),
        linear-gradient(135deg, #8D1B1B 0%, #7A111A 48%, #6D1010 100%);

    background-size: 100% 100%, 100% 100%, 100% 100%, auto;
    background-position: 0 0, 0 0, 0 0, 0 0;
    background-repeat: no-repeat;
    border-radius: 150px;
    box-shadow: inset -18px 0 40px rgba(62, 39, 35, 0.14);
    animation: swiftVisibleFlowWaves 12s ease-in-out infinite alternate !important;
}

@keyframes swiftVisibleFlowWaves {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    50% {
        background-position: -18px 8px, 14px -8px, -12px -6px, 0 0;
    }
    100% {
        background-position: -34px 16px, 28px -16px, -24px -12px, 0 0;
    }
}

@media (max-width: 850px) {
    .swift-login-page .toggle-box::before {
        border-radius: 0;
        animation: none !important;
    }
}
/* =========================================================
   SWIFT LOGIN — FINAL FIX ONLY: ACTIVATION HEIGHT + CARD SHADOW
   No layout/design/colour/functionality changes.
========================================================= */
@media (min-width: 851px) {
    .swift-login-page .container {
        height: 680px !important;
        max-height: 90vh !important;
        box-shadow:
            0 24px 55px rgba(62, 39, 35, 0.28),
            0 8px 22px rgba(62, 39, 35, 0.14) !important;
    }
}
