:root {
    --rock-orange: #f26522;
    --rock-orange-light: #ff7a38;
    --rock-dark: #111111;
    --rock-surface: #1f1f1f;
    --rock-text: #171717;
    --rock-muted: #686868;
    --rock-border: #dddddd;
}

* {
    box-sizing: border-box;
}

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

body.login-page {
    min-height: 100vh;
    color: var(--rock-text);
    background: #f5f5f3;
    font-family: "Figtree", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
}

.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: clamp(48px, 7vw, 112px);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 18%, rgba(242, 101, 34, 0.22), transparent 28%),
        linear-gradient(145deg, #0d0d0d 0%, #181818 58%, #242424 100%);
}

.login-brand::before {
    position: absolute;
    right: -160px;
    bottom: -210px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(242, 101, 34, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 0 56px rgba(242, 101, 34, 0.035), 0 0 0 112px rgba(242, 101, 34, 0.025);
    content: "";
}

.brand-content {
    position: relative;
    z-index: 2;
    width: min(590px, 100%);
}

.brand-logo {
    display: block;
    width: min(289px, 72%);
    height: auto;
    margin-bottom: clamp(64px, 10vh, 108px);
}

.brand-eyebrow {
    margin: 0 0 20px;
    color: var(--rock-orange-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-content h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 4.5vw, 72px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.brand-content h1 span {
    color: var(--rock-orange);
}

.brand-copy {
    max-width: 530px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 17px;
    line-height: 1.65;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 52px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rock-orange);
    box-shadow: 0 0 0 5px rgba(242, 101, 34, 0.13);
}

.market-grid {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom right, transparent 20%, #000 100%);
    pointer-events: none;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px clamp(32px, 6vw, 96px);
    background: #f5f5f3;
}

.mobile-brand {
    display: none;
}

.login-card {
    width: min(430px, 100%);
}

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

.product-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--rock-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.login-header h2 {
    margin: 0 0 10px;
    color: var(--rock-text);
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.login-header p {
    margin: 0;
    color: var(--rock-muted);
    font-size: 16px;
}

.field-group {
    margin-bottom: 22px;
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: #303030;
    font-size: 14px;
    font-weight: 600;
}

.login-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--rock-border);
    border-radius: 8px;
    outline: none;
    color: var(--rock-text);
    background: #ffffff;
    font: inherit;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-input::placeholder {
    color: #a0a0a0;
}

.login-input:hover {
    border-color: #bdbdbd;
}

.login-input:focus {
    border-color: var(--rock-orange);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.12);
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #b73522;
    font-size: 13px;
}

.login-button {
    width: 100%;
    height: 56px;
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--rock-orange);
    box-shadow: 0 10px 24px rgba(242, 101, 34, 0.2);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-button:hover {
    background: #dc5417;
    box-shadow: 0 13px 28px rgba(242, 101, 34, 0.28);
    transform: translateY(-1px);
}

.login-button:focus-visible {
    outline: 3px solid rgba(242, 101, 34, 0.28);
    outline-offset: 3px;
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    color: #929292;
    font-size: 12px;
}

.login-footer a {
    color: #666666;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--rock-orange);
}

@media (max-width: 900px) {
    .login-shell {
        display: block;
    }

    .login-brand {
        display: none;
    }

    .login-panel {
        position: relative;
        min-height: 100vh;
        padding: 36px 24px;
        background:
            radial-gradient(circle at 100% 0, rgba(242, 101, 34, 0.11), transparent 34%),
            #f5f5f3;
    }

    .mobile-brand {
        position: absolute;
        top: 32px;
        left: 24px;
        display: block;
        padding: 13px 16px;
        border-radius: 6px;
        background: var(--rock-dark);
    }

    .mobile-brand img {
        display: block;
        width: 174px;
        height: auto;
    }

    .login-card {
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        align-items: flex-start;
        padding: 28px 20px;
    }

    .mobile-brand {
        top: 24px;
        left: 20px;
    }

    .mobile-brand img {
        width: 150px;
    }

    .login-card {
        margin-top: 122px;
    }

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

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
