﻿/* =============================================
   SKY MY TRIP — GLASSMORPHISM LOGIN
   ============================================= */

/* =============================================
   ROOT — full viewport split
   ============================================= */
.gp-root {
    display: grid;
    grid-template-columns: 55% 45%;
    height: 100vh;
    overflow: hidden;
    background: #07111f;
}

/* =============================================
   LEFT PANEL — dark with animation
   ============================================= */
.gp-left {
    position: relative;
    background: linear-gradient(160deg, #07111f 0%, #0d1e36 40%, #0a1828 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Subtle noise texture overlay */
.gp-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Radial glow */
.gp-left::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* BRAND TOP-LEFT */
.gp-brand {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    padding: 28px 32px;
    font-family: 'Calibri', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: opacity 0.2s ease;
}

.gp-brand:hover {
    opacity: 0.85;
}

.gp-brand-blue {
    color: #60a5fa;
}

.gp-brand-orange {
    color: #fb923c;
}

/* SVG CONTAINER */
.gp-anim-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.gp-svg {
    width: 100%;
    max-width: 520px;
    height: auto;
}

/* LEFT FOOTER COPY */
.gp-left-footer {
    position: relative;
    z-index: 2;
    padding: 24px 32px 32px;
}

.gp-tagline {
    font-family: 'Calibri', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.gp-sub-tag {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 400;
}

/* =============================================
   SVG ANIMATIONS
   ============================================= */

/* Stars twinkle */
.star {
    opacity: 0.7;
}

.star-1 {
    animation: twinkle 3.2s ease-in-out infinite;
}

.star-2 {
    animation: twinkle 2.6s ease-in-out infinite 0.8s;
}

.star-3 {
    animation: twinkle 4s ease-in-out infinite 1.5s;
}

.star-4 {
    animation: twinkle 2.9s ease-in-out infinite 2.1s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.7;
        r: 1.4px;
    }

    50% {
        opacity: 0.2;
        r: 0.8px;
    }
}

/* Route dash draw-in */
.route-dash {
    stroke-dasharray: 6 5;
    animation: dash-draw 1.8s ease forwards;
}

@keyframes dash-draw {
    from {
        stroke-dashoffset: 400;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Plane along the path */
.plane-traveller {
    offset-path: path("M155,230 C200,120 340,110 375,215");
    offset-rotate: auto;
    animation: fly-path 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fly-path {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* City pulse rings */
.pulse-ring {
    transform-origin: center;
    animation: ring-expand 2.4s ease-out infinite;
}

.pulse-ring.r1 {
    animation-delay: 0s;
}

.pulse-ring.r2 {
    animation-delay: 0.5s;
}

@keyframes ring-expand {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Distance badge sits at arc midpoint */
.dist-badge {
    transform: translate(265px, 140px);
    animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

@keyframes badge-pop {
    from {
        transform: translate(265px, 140px) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translate(265px, 140px) scale(1);
        opacity: 1;
    }
}

/* Clouds float */
.cloud-1 {
    transform: translate(90px, 80px);
    animation: cloud-drift 18s linear infinite;
}

.cloud-2 {
    transform: translate(400px, 320px);
    animation: cloud-drift 24s linear infinite reverse;
}

@keyframes cloud-drift {
    0% {
        transform: translate(90px, 80px);
    }

    50% {
        transform: translate(130px, 75px);
    }

    100% {
        transform: translate(90px, 80px);
    }
}

/* =============================================
   RIGHT PANEL — glassmorphism
   ============================================= */
.gp-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    background: linear-gradient(160deg, #0d1a2e 0%, #071220 100%);
    position: relative;
    overflow: hidden;
}

/* Background glow blob */
.gp-right::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ── GLASS CARD ── */
.gp-glass-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 64px rgba(0, 0, 0, 0.4);
    animation: card-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes card-in {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── CARD HEADER ── */
.gp-card-header {
    margin-bottom: 28px;
}

.gp-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.gp-heading {
    font-family: 'Calibri', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #f0f6ff;
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 7px;
}

.gp-desc {
    font-size: 14px;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.55;
}

/* ── FORM ── */
.gp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FIELD */
.gp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gp-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.9);
    letter-spacing: 0.1px;
}

.gp-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-forgot {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    padding: 0;
    transition: color 0.18s ease;
}

.gp-forgot:hover {
    color: #93c5fd;
}

/* INPUT WRAPPER */
.gp-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gp-input-wrap:focus-within {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: rgba(255, 255, 255, 0.09);
}

.gp-input-wrap.err {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.gp-icon {
    font-size: 14px;
    color: rgba(148, 163, 184, 0.6);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.gp-input-wrap:focus-within .gp-icon {
    color: #60a5fa;
}

.gp-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Calibri', sans-serif;
    font-size: 14px;
    color: #e2e8f0;
    padding: 13px 0;
}

.gp-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.gp-eye {
    background: none;
    border: none;
    padding: 0;
    color: rgba(148, 163, 184, 0.5);
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.gp-eye:hover {
    color: rgba(148, 163, 184, 0.9);
}

/* ERROR */
.gp-err-msg {
    font-size: 12px;
    color: #f87171;
    font-weight: 500;
    margin-top: 1px;
}

/* REMEMBER ME TOGGLE */
.gp-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.gp-toggle {
    width: 38px;
    height: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    outline: none;
}

.gp-toggle.on {
    background: #243370;
    border-color: #243370;
}

.gp-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gp-toggle.on .gp-thumb {
    left: 20px;
    background: #ffffff;
}

.gp-remember-label {
    font-size: 14px;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 500;
}

/* SUBMIT BUTTON */
.gp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #243370 0%, #1a2558 100%);
    color: #ffffff;
    font-family: 'Calibri', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 20px;
    margin-top: 4px;
    box-shadow:
        0 8px 28px rgba(37, 99, 235, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    letter-spacing: 0.1px;
}

.gp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    filter: brightness(1.08);
}

.gp-submit:active {
    transform: scale(0.98);
}

.gp-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.gp-submit:hover .gp-arrow {
    transform: translateX(4px);
}

/* SIGN UP */
.gp-signup {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: rgba(100, 116, 139, 0.8);
}

.gp-signup-link {
    background: none;
    border: none;
    padding: 0;
    color: #60a5fa;
    font-weight: 700;
    font-size: inherit;
    transition: color 0.18s ease;
}

.gp-signup-link:hover {
    color: #93c5fd;
}

/* SECURITY BADGES */
.gp-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(100, 116, 139, 0.7);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gp-badge svg {
    font-size: 10px;
    color: rgba(100, 116, 139, 0.5);
}

.gp-badge-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {

    html,
    body {
        overflow: auto;
    }

    .gp-root {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .gp-left {
        height: 300px;
        min-height: 300px;
    }

    .gp-left-footer {
        display: none;
    }

    .gp-right {
        padding: 36px 20px 48px;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .gp-glass-card {
        padding: 28px 20px 24px;
    }

    .gp-heading {
        font-size: 24px;
    }
}