﻿/* ============================================================
   TravelXpress — login.css
   Place in: wwwroot/css/login.css
   ============================================================ */

/* ── Page background ── */
.lp-bg {
    min-height: calc(100vh - 70px);
    background: #0a0a0f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
}

/* ── Grid texture ── */
.lp-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ── Radial glow ── */
.lp-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.lp-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Floating particles ── */
.lp-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lp-p {
    position: absolute;
    border-radius: 50%;
    background: var(--gold, #c9a84c);
    opacity: 0.12;
    animation: lpFloat linear infinite;
}

.lp-p1 {
    width: 6px;
    height: 6px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.lp-p2 {
    width: 4px;
    height: 4px;
    left: 25%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.lp-p3 {
    width: 8px;
    height: 8px;
    left: 45%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.lp-p4 {
    width: 5px;
    height: 5px;
    left: 65%;
    animation-duration: 20s;
    animation-delay: 5s;
}

.lp-p5 {
    width: 3px;
    height: 3px;
    left: 78%;
    animation-duration: 16s;
    animation-delay: 2s;
}

.lp-p6 {
    width: 7px;
    height: 7px;
    left: 90%;
    animation-duration: 22s;
    animation-delay: 7s;
}

@keyframes lpFloat {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.12;
    }

    90% {
        opacity: 0.12;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ── Shake animation ── */
@keyframes lpShake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes lpFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lpPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes lpShineSweep {
    0% {
        left: -60%;
    }

    100% {
        left: 130%;
    }
}

@keyframes lpSpinRing {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── Layout ── */
.lp-center {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    max-width: 980px;
    width: 100%;
    background: rgba(17,17,24,0.9);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.08);
    animation: lpFadeUp 0.5s ease both;
}

/* ── Left decorative panel ── */
.lp-left {
    flex: 0 0 42%;
    background: linear-gradient(145deg, #111118 0%, #1a1a24 50%, #111118 100%);
    border-right: 1px solid rgba(201,168,76,0.12);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

    .lp-left::before {
        content: '';
        position: absolute;
        top: -30%;
        left: -20%;
        width: 80%;
        height: 80%;
        background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 65%);
        pointer-events: none;
    }

.lp-left-inner {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
}

.lp-brand-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.lp-badge-img {
    height: 40px;
    width: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
}

.lp-badge-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, #c9a84c, #e8c96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-left-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: #f0ede8;
    line-height: 1.25;
    margin-bottom: 16px;
}

.lp-gold-text {
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-left-sub {
    font-size: 13.5px;
    color: #8a8a9a;
    line-height: 1.7;
    margin-bottom: 32px;
}

.lp-feat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lp-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #a0a0b0;
}

    .lp-feat i {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(201,168,76,0.1);
        border: 1px solid rgba(201,168,76,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #c9a84c;
        font-size: 12px;
        flex-shrink: 0;
    }

/* decorative rings */
.lp-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.08);
    pointer-events: none;
}

.lp-ring1 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
}

.lp-ring2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    right: -40px;
    border-color: rgba(201,168,76,0.12);
}

/* ── Right form panel ── */
.lp-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.lp-card {
    width: 100%;
    max-width: 380px;
}

.lp-shake {
    animation: lpShake 0.45s ease;
}

/* Card head */
.lp-card-head {
    text-align: center;
    margin-bottom: 28px;
}

.lp-shield-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
}

.lp-shield-outer {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.lp-shield-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    font-size: 22px;
}

.lp-shield-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.3);
    animation: lpPulse 2.5s ease-in-out infinite;
}

.lp-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: #f0ede8;
    margin-bottom: 6px;
}

.lp-card-sub {
    font-size: 13px;
    color: #8a8a9a;
    margin: 0;
}

/* Steps */
.lp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.lp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.lp-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #22222e;
    border: 2px solid rgba(201,168,76,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #8a8a9a;
    transition: all 0.3s;
}

.lp-step span {
    font-size: 10px;
    color: #8a8a9a;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lp-step-active .lp-step-dot {
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    border-color: #c9a84c;
    color: #0a0a0f;
}

.lp-step-active span {
    color: #c9a84c;
}

.lp-step-done .lp-step-dot {
    background: rgba(201,168,76,0.15);
    border-color: #c9a84c;
    color: #c9a84c;
}

.lp-step-done span {
    color: #c9a84c;
}

.lp-step-line {
    flex: 0 0 60px;
    height: 2px;
    background: rgba(201,168,76,0.15);
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 2px;
    transition: background 0.3s;
}

.lp-line-done {
    background: linear-gradient(90deg, #c9a84c, #e8c96a);
}

/* Form body */
.lp-form-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lp-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lp-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8a8a9a;
}

.lp-input-wrap {
    position: relative;
}

.lp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9a84c;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.lp-input {
    width: 100%;
    height: 48px;
    background: #1a1a24;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px;
    color: #f0ede8;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 0 44px 0 42px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

    .lp-input::placeholder {
        color: #555566;
    }

    .lp-input:focus {
        border-color: #c9a84c;
        box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
    }

.lp-eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a8a9a;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

    .lp-eye-btn:hover {
        color: #c9a84c;
    }

.lp-otp-input {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Playfair Display', serif;
}

/* OTP info banner */
.lp-otp-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    font-size: 13px;
    color: #a0a0b0;
}

    .lp-otp-info i {
        color: #c9a84c;
        font-size: 13px;
    }

    .lp-otp-info strong {
        color: #f0ede8;
    }

/* Timer */
.lp-timer-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #1a1a24;
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 12px;
}

.lp-timer-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.lp-timer-svg {
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}

.lp-timer-track {
    fill: none;
    stroke: rgba(201,168,76,0.1);
    stroke-width: 3;
}

.lp-timer-prog {
    fill: none;
    stroke: url(#timerGrad);
    stroke: #c9a84c;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 113;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.5s;
}

.lp-timer-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #c9a84c;
    font-family: 'DM Sans', sans-serif;
}

.lp-timer-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #f0ede8;
    margin-bottom: 3px;
}

.lp-timer-hint {
    font-size: 11px;
    color: #8a8a9a;
}

/* Error box */
.lp-error-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 10px;
    color: #f87171;
    font-size: 13px;
}

    .lp-error-box i {
        font-size: 14px;
        flex-shrink: 0;
    }

/* Submit button */
.lp-submit-btn {
    position: relative;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    border: none;
    border-radius: 12px;
    color: #0a0a0f;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
    margin-top: 4px;
}

    .lp-submit-btn:hover {
        opacity: 0.92;
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(201,168,76,0.4);
    }

    .lp-submit-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(201,168,76,0.25);
    }

.lp-btn-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-15deg);
    animation: lpShineSweep 3s ease infinite;
}

/* Card footer */
.lp-card-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: #555566;
}

    .lp-card-foot i {
        color: rgba(201,168,76,0.4);
        font-size: 11px;
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .lp-left {
        display: none;
    }

    .lp-center {
        border-radius: 20px;
        max-width: 440px;
    }

    .lp-right {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .lp-bg {
        padding: 20px 12px;
    }

    .lp-right {
        padding: 28px 20px;
    }

    .lp-center {
        border-radius: 16px;
    }
}
