:root {
    --navy: #0F2A4D;
    --navy-2: #143058;
    --orange: #F58634;
    --paper: #F4F2EC;
    --ink: #1C1F26;
    --bad: #B42318;
    --dark: #1C1F26;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--paper);
    font-family: 'Inter', sans-serif;
    color: var(--ink);
}

.page-wrap {
    width: 100%;
    max-width: 400px;
    padding: 24px 16px;
}

/* Logo above card */
.logo-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-row img {
    height: 36px;
    width: auto;
}


.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #FBC79A;
    margin: 0 0 8px;
    position: relative;
}

h1 {
    font-family: 'Sora', sans-serif;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 28px;
    line-height: 1.3;
    position: relative;
}

h1 span {
    color: var(--orange);
}

.field {
    margin-bottom: 16px;
    position: relative;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color .15s;
}

input::placeholder {
    color: rgba(255, 255, 255, .25);
}

input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, .1);
}

.btn-signin {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    background: var(--orange);
    color: #1a0d00;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    transition: opacity .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signin:hover {
    opacity: .92;
}

.btn-signin:active {
    transform: scale(.98);
}

.btn-signin:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Spinner inside button */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 13, 0, .3);
    border-top-color: #1a0d00;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.err-box {
    background: rgba(180, 35, 24, .18);
    color: #ffb4ac;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 16px;
    position: relative;
    display: none;
}

.err-box.show {
    display: block;
}

.links {
    margin-top: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
    position: relative
}

.links a {
    color: #FBC79A;
    text-decoration: none
}


.card {
    width: 100%;
    max-width: 380px;
    border-radius: 18px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.card-wrap{
        padding: 2px;
    border-radius: 16px;
    background: conic-gradient(from var(--angle, 0deg), #ffc7a0, transparent 40%, transparent 60%, #f58634);
    animation: promptbar-rotate-gradient 6s linear infinite;
    box-shadow: 1px 1px 10px 5px #3f51b56e, inset -10px -10px 20px -10px #ad9eb112, inset 10px 10px 20px -9px #3F51B5;
}
.card::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%
}


label {

    margin-top: 10px;
}



input::placeholder {
    color: rgba(255, 255, 255, .35)
}

input:focus {
    outline: 2px solid var(--orange);
    outline-offset: 1px
}

.err {
    background: rgba(180, 35, 24, .18);
    color: #ffb4ac;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 14px;
    position: relative
}


/* ------------- */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: grid;
    place-items: center;
    z-index: 100;
    padding: 20px;
}

.glow-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main Neon Line */
.glow-line path {
    fill: none;
    stroke: #ffa200;
    stroke-width: 2;

    filter:
        drop-shadow(0 0 10px #f6e775) drop-shadow(0 0 20px #f9e45f) drop-shadow(0 0 40px #fac751);

    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;

    animation:
        drawLine 4s ease forwards,
        pulseGlow 3s infinite alternate;
}

path {
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: draw 4s linear forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseGlow {
    from {
        filter:
            drop-shadow(0 0 10px #ffd078) drop-shadow(0 0 20px #ffc96d);
    }

    to {
        filter:
            drop-shadow(0 0 20px #ffe76d) drop-shadow(0 0 40px #fffd6d) drop-shadow(0 0 80px #ffda6d);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-wrap {
        max-width: 100%;
        padding: 20px 16px;
    }

    .logo-row {
        margin-bottom: 20px;
    }

    .logo-row img {
        height: 32px;
    }

    .card {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .card-wrap {
        border-radius: 14px;
    }

    h1 {
        font-size: 20px;
        margin: 0 0 24px;
    }

    .eyebrow {
        font-size: 10px;
        margin: 0 0 6px;
    }

    input {
        padding: 11px 13px;
        font-size: 14px;
    }

    .btn-signin {
        padding: 13px;
        font-size: 14px;
    }

    .field {
        margin-bottom: 14px;
    }

    label {
        font-size: 11.5px;
        margin-bottom: 8px;
    }

    .links {
        font-size: 12px;
    }

    .err-box {
        font-size: 12.5px;
        padding: 9px 12px;
    }
}

@media (max-width: 480px) {
    .page-wrap {
        padding: 16px 12px;
    }

    .logo-row img {
        height: 28px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .card-wrap {
        border-radius: 12px;
    }

    h1 {
        font-size: 19px;
        margin: 0 0 20px;
    }

    .eyebrow {
        font-size: 10px;
    }

    input {
        padding: 10px 12px;
        font-size: 13.5px;
        border-radius: 9px;
    }

    .btn-signin {
        padding: 12px;
        font-size: 13.5px;
        border-radius: 9px;
    }

    .field {
        margin-bottom: 13px;
    }

    label {
        font-size: 11px;
        margin-bottom: 7px;
    }

    .links {
        font-size: 11.5px;
        margin-top: 14px;
    }

    .err-box {
        font-size: 12px;
        padding: 8px 11px;
        margin-bottom: 14px;
    }

    .spinner {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .page-wrap {
        padding: 12px 10px;
    }

    .card {
        padding: 20px 16px;
    }

    h1 {
        font-size: 18px;
    }

    input {
        padding: 9px 11px;
        font-size: 13px;
    }

    .btn-signin {
        padding: 11px;
        font-size: 13px;
    }
}