/*!
 * JUPSS Login Styles
 * Based on Jupss! Bar & Lounge Design System
 * Colors: Gold #c98b24, Amber #f2c76a, Deep Brown #241b13
 */

:root {
    --gold: #c98b24;
    --gold-light: #f2c76a;
    --gold-dark: #7c4b0e;
    --ink: #241b13;
    --muted: #81776e;
    --line: #e8dfd2;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 10%, #fff, #f6f1e8 48%, #e9e0d3);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-shell {
    width: min(1000px, 100%);
    min-height: 590px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 46% 54%;
    box-shadow: 0 28px 80px rgba(54, 36, 16, .20);
    border: 1px solid rgba(104, 70, 26, .10);
}

/* Brand Panel (Left) */
.brand-panel {
    position: relative;
    background: linear-gradient(145deg, #080706 0%, #17100a 52%, #050403 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, rgba(208, 139, 36, .20), transparent 42%);
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(211, 151, 57, .22);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(180, 112, 24, .10) inset;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.brand-content .logo {
    width: min(280px, 72vw);
    height: auto;
    display: block;
    margin: 0 auto 24px;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .60));
    border-radius: 50%;
}

.brand-caption {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #caa66c;
    font-weight: 700;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    color: #f0c36c;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Form Panel (Right) */
.form-panel {
    padding: 62px 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-dark);
    font-weight: 800;
    margin-bottom: 11px;
}

.form-panel h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    margin: 0 0 9px;
    letter-spacing: -.5px;
}

.subtitle {
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 15px;
}

/* Form Fields */
.field {
    margin-bottom: 19px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 750;
    margin: 0 0 8px;
}

.input-wrap {
    position: relative;
}

.input-wrap span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aa7a2b;
    font-size: 15px;
}

.field input {
    width: 100%;
    height: 53px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 0 15px 0 44px;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

.field input:focus {
    border-color: #c99237;
    box-shadow: 0 0 0 4px rgba(201, 139, 36, .12);
}

/* Options row (checkbox / forgot password) */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3px 0 25px;
    font-size: 13px;
    color: var(--muted);
}

.check {
    display: flex;
    gap: 8px;
    align-items: center;
}

.check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: #b67b20;
}

.options a {
    color: #956016;
    text-decoration: none;
    font-weight: 700;
}

/* Submit Button */
.btn-jupss {
    width: 100%;
    height: 53px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8e5b13, #d19a35 55%, #b77918);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .8px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(142, 91, 19, .25);
    transition: .2s;
}

.btn-jupss:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-jupss:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Footer */
.footer {
    margin-top: 27px;
    text-align: center;
    color: #aaa29a;
    font-size: 10.5px;
    line-height: 1.7;
}

.footer strong {
    color: #74695e;
}

/* Migration Progress */
.migration-progress-bar {
    height: 30px;
    border-radius: 11px;
    background: var(--line);
    overflow: hidden;
    margin-bottom: 1rem;
}

.migration-progress-bar .bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #8e5b13, #d19a35 55%, #b77918);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* Alerts */
.alert-jupss {
    padding: 12px 16px;
    border-radius: 11px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-jupss-warning {
    color: #67430A;
    background: #FFF0D9;
    border: 1px solid #E8C27A;
}

.alert-jupss-danger {
    color: #6C2C24;
    background: #F7E2DE;
    border: 1px solid #D8A39A;
}

.alert-jupss-success {
    color: #3D4D20;
    background: #EAF0DC;
    border: 1px solid #B8C794;
}

/* reCAPTCHA overflow */
.g-recaptcha {
    transform-origin: center;
}

/* Mobile Responsive */
@media (max-width: 760px) {
    body {
        align-items: flex-start;
        overflow-y: auto;
        padding: 48px 14px 24px;
        padding-top: max(48px, env(safe-area-inset-top, 48px));
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 12px 0;
        width: 100%;
    }

    .brand-panel {
        min-height: 395px;
        padding: 48px 28px 28px;
    }

    .brand-content .logo {
        width: 245px;
        margin-bottom: 17px;
    }

    .brand-caption {
        font-size: 9px;
    }

    .form-panel {
        padding: 40px 28px;
    }
}

/* QHD */
@media (min-width: 2560px) {
    .login-shell {
        max-width: 1200px;
    }
}

/* 4K */
@media (min-width: 3840px) {
    .login-shell {
        max-width: 1400px;
    }
}

/* Small screens reCAPTCHA */
@media (max-width: 359.98px) {
    .g-recaptcha {
        overflow-x: auto;
        min-height: 86px;
    }
}
