:root {
    --reboss-bg: #0b0d10;
    --reboss-panel: #111419;
    --reboss-panel-light: #171a20;
    --reboss-border: rgba(255,255,255,0.10);
    --reboss-text: #f4f1e8;
    --reboss-muted: #969ba5;
    --reboss-gold: #c7a86b;
    --reboss-gold-light: #e0c58b;
    --reboss-input: #0d1014;
}

* {
    box-sizing: border-box;
}

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

body {
    background: var(--reboss-bg);
    color: var(--reboss-text);
    font-family: 'DM Sans', sans-serif;
}

.reboss-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background:
        radial-gradient(circle at 20% 30%, rgba(199,168,107,0.09), transparent 32%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.035), transparent 28%),
        var(--reboss-bg);
}

.reboss-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px;
    overflow: hidden;
    border-right: 1px solid var(--reboss-border);
}

.reboss-brand-panel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(199,168,107,0.12);
    border-radius: 50%;
    left: -240px;
    top: 50%;
    transform: translateY(-50%);
}

.reboss-brand-panel::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    right: -170px;
    bottom: -160px;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199,168,107,0.65);
    color: var(--reboss-gold-light);
    margin-bottom: 24px;
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(199,168,107,0.22);
}

.brand-mark span {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.brand-name span {
    color: var(--reboss-gold);
    font-weight: 500;
}

.brand-line {
    width: 54px;
    height: 1px;
    background: var(--reboss-gold);
    margin: 30px 0 28px;
}

.system-label {
    color: var(--reboss-gold);
    font-size: 11px;
    letter-spacing: 0.24em;
    font-weight: 600;
    margin-bottom: 16px;
}

.brand-content h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(58px, 7vw, 100px);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.system-name {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: #d7d9dd;
    max-width: 520px;
}

.brand-description {
    margin: 26px 0 0;
    max-width: 500px;
    color: var(--reboss-muted);
    font-size: 14px;
    line-height: 1.8;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 70px;
    color: #6e737c;
    font-size: 10px;
    letter-spacing: 0.18em;
}

.brand-footer .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--reboss-gold);
}

.reboss-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(17,20,25,0.72);
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.mobile-brand {
    display: none;
}

.login-header {
    margin-bottom: 38px;
}

.eyebrow {
    color: var(--reboss-gold);
    font-size: 10px;
    letter-spacing: 0.22em;
    font-weight: 700;
    margin-bottom: 13px;
}

.login-header h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.login-header p {
    margin: 10px 0 0;
    color: var(--reboss-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #d8d9dc;
    font-size: 12px;
    font-weight: 600;
}

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

.label-row label {
    margin-bottom: 9px;
}

.forgot-link {
    color: var(--reboss-gold);
    font-size: 11px;
    text-decoration: none;
    margin-bottom: 9px;
}

.forgot-link:hover {
    color: var(--reboss-gold-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.password-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--reboss-border);
    border-radius: 2px;
    outline: none;
    background: var(--reboss-input);
    color: var(--reboss-text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #5f646d;
}

.form-group input:focus {
    border-color: rgba(199,168,107,0.65);
    box-shadow: 0 0 0 3px rgba(199,168,107,0.07);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #737984;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--reboss-gold);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.form-options {
    margin: 4px 0 27px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #888e97;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #555b65;
    display: inline-block;
    position: relative;
}

.remember input:checked + .checkmark {
    border-color: var(--reboss-gold);
    background: var(--reboss-gold);
}

.remember input:checked + .checkmark::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 8px;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
    transform: rotate(45deg);
    left: 5px;
    top: 2px;
}

.signin-button {
    width: 100%;
    height: 56px;
    border: 1px solid var(--reboss-gold);
    border-radius: 2px;
    background: var(--reboss-gold);
    color: #111;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: background 0.2s, transform 0.2s;
}

.signin-button:hover {
    background: var(--reboss-gold-light);
    transform: translateY(-1px);
}

.signin-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.login-security {
    margin-top: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #666c75;
    font-size: 11px;
}

.login-security svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.login-copyright {
    margin-top: 45px;
    text-align: center;
    color: #50555e;
    font-size: 10px;
}

@media (max-width: 900px) {

    .reboss-login {
        grid-template-columns: 1fr;
    }

    .reboss-brand-panel {
        display: none;
    }

    .reboss-form-panel {
        min-height: 100vh;
        padding: 35px 22px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 55px;
    }

    .brand-mark.small {
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .brand-mark.small span {
        font-size: 21px;
    }

    .mobile-brand-name {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.16em;
    }

    .mobile-brand-sub {
        color: var(--reboss-gold);
        font-size: 9px;
        letter-spacing: 0.24em;
        margin-top: 3px;
    }

    .login-header h2 {
        font-size: 36px;
    }

}

@media (max-width: 480px) {

    .reboss-form-panel {
        padding: 28px 18px;
    }

    .mobile-brand {
        margin-bottom: 48px;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-header h2 {
        font-size: 32px;
    }

}


/*
|--------------------------------------------------------------------------
| REBOSS Premium Create Account
|--------------------------------------------------------------------------
*/

.login-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0 20px;
}

.login-divider span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.login-divider small {
    color: #7f858f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.account-register {
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(199, 168, 107, 0.42);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.025),
        rgba(199, 168, 107, 0.035)
    );
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.account-register:hover {
    border-color: rgba(199, 168, 107, 0.72);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.035),
        rgba(199, 168, 107, 0.07)
    );
}

.account-register-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7a86b;
}

.account-register-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-register-text {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
}

.account-register-text span {
    color: #f4f1e8;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.create-account-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 17px;
    border: 1px solid rgba(199, 168, 107, 0.75);
    border-radius: 10px;
    color: #e0c58b;
    background: rgba(199, 168, 107, 0.035);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.create-account-link:hover {
    color: #0b0d10;
    background: #c7a86b;
    border-color: #c7a86b;
    transform: translateY(-1px);
}

.create-account-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 520px) {

    .account-register {
        padding: 9px;
    }

    .account-register-icon {
        display: none;
    }

    .account-register-text {
        padding: 0 8px 0 7px;
    }

    .account-register-text span {
        font-size: 13px;
    }

    .create-account-link {
        padding: 0 13px;
        gap: 7px;
        font-size: 11px;
    }

}

/*
|--------------------------------------------------------------------------
| REBOSS Login Layout Correction
|--------------------------------------------------------------------------
*/

/* Keep the complete login experience within the viewport */
html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

.reboss-login {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.reboss-brand-panel,
.reboss-form-panel {
    min-height: 100vh;
    height: 100vh;
}

.reboss-brand-panel {
    overflow: hidden;
}

.reboss-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-container {
    width: 100%;
    max-width: 520px;
}

/*
|--------------------------------------------------------------------------
| Premium Create Account Section
|--------------------------------------------------------------------------
*/

.login-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 16px;
}

.login-divider span {
    display: block;
    flex: 1;
    width: auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.login-divider small {
    display: block;
    flex: 0 0 auto;
    color: #777d87;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
}

.account-register {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border: 1px solid rgba(199, 168, 107, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
    transition: all 0.25s ease;
}

.account-register:hover {
    border-color: rgba(199, 168, 107, 0.65);
    background: rgba(199, 168, 107, 0.035);
}

.account-register-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7a86b;
}

.account-register-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    max-width: 21px;
    max-height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-register-text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px;
}

.account-register-text span {
    display: block;
    color: #f4f1e8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.create-account-link {
    min-height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(199, 168, 107, 0.65);
    border-radius: 9px;
    color: #e0c58b !important;
    background: transparent;
    text-decoration: none !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.create-account-link:visited {
    color: #e0c58b !important;
}

.create-account-link:hover {
    color: #0b0d10 !important;
    background: #c7a86b;
    border-color: #c7a86b;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.create-account-link svg {
    display: block;
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*
|--------------------------------------------------------------------------
| Desktop Form Spacing
|--------------------------------------------------------------------------
*/

@media (min-width: 769px) {

    .login-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

}

/*
|--------------------------------------------------------------------------
| Tablet / Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .reboss-login {
        height: auto;
        min-height: 100vh;
        display: block;
        overflow: visible;
    }

    .reboss-brand-panel {
        display: none;
    }

    .reboss-form-panel {
        width: 100%;
        min-height: 100vh;
        height: auto;
        padding: 40px 24px;
        overflow: visible;
    }

    .login-container {
        max-width: 520px;
        margin: 0 auto;
    }

}

@media (max-width: 520px) {

    .reboss-form-panel {
        padding: 28px 18px 32px;
    }

    .account-register {
        min-height: 60px;
        padding: 7px;
        border-radius: 11px;
    }

    .account-register-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex-basis: 34px;
    }

    .account-register-icon svg {
        width: 19px;
        height: 19px;
    }

    .account-register-text {
        padding: 0 5px;
    }

    .account-register-text span {
        font-size: 12px;
    }

    .create-account-link {
        min-height: 38px;
        padding: 0 11px;
        gap: 6px;
        font-size: 10px;
    }

    .create-account-link svg {
        width: 14px;
        height: 14px;
    }

}
/* Fix Chrome/Edge autofill white background override */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--reboss-input) inset !important;
    -webkit-text-fill-color: var(--reboss-text) !important;
    caret-color: var(--reboss-text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Fix: grid columns overflowing on narrow viewports (min-width defaults to auto in CSS Grid) */
.reboss-brand-panel,
.reboss-form-panel {
    min-width: 0;
}
