:root {
    --black: #050505;
    --white: #ffffff;
    --text: #0b0b0b;
    --muted: #707070;
    --line: #dedede;
    --error: #b42318;
    --success: #18794e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #ffffff;
    color: var(--text);
    font-family: "DM Sans", sans-serif;
}

input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

button,
input,
a {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.signin-page {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

.signin-header {
    height: 74px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 42px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 20;
}

.signin-logo {
    font-family: "Anton", sans-serif;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -0.8px;
    color: #050505;
}

.signin-main {
    width: 100%;
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: 55% 45%;
}

.signin-brand-panel {
    position: relative;
    min-height: calc(100vh - 74px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 23%,
            #252525 0,
            #111111 23%,
            transparent 49%
        ),
        radial-gradient(
            circle at 18% 82%,
            #181818 0,
            #080808 44%,
            #030303 76%
        );
    color: #ffffff;
}

.brand-grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.5) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image: linear-gradient(
        to bottom right,
        black,
        transparent 82%
    );
    -webkit-mask-image: linear-gradient(
        to bottom right,
        black,
        transparent 82%
    );
}

.brand-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one {
    width: 650px;
    height: 650px;
    right: -270px;
    top: -150px;
}

.orbit-two {
    width: 880px;
    height: 880px;
    right: -385px;
    top: -265px;
}

.orbit-three {
    width: 1110px;
    height: 1110px;
    right: -500px;
    top: -380px;
    border-color: rgba(255,255,255,0.05);
}

.signin-brand-panel::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    left: -410px;
    bottom: -400px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 50%;
}

.signin-brand-panel::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: 10%;
    bottom: -190px;
    background: #191919;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.42;
}

.brand-panel-content {
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 74px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 8vw;
}

.brand-panel-copy {
    max-width: 720px;
}

.brand-panel-copy h1 {
    max-width: 700px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(62px, 5.7vw, 108px);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.065em;
    color: #ffffff;
}

.brand-panel-copy h1 span {
    display: block;
    color: #777777;
}

.brand-panel-copy p {
    max-width: 460px;
    margin-top: 34px;
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.7;
}

.signin-form-panel {
    min-width: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 7vw;
}

.signin-form-wrapper {
    width: 100%;
    max-width: 540px;
}

.signin-intro {
    margin-bottom: 28px;
}

.signin-intro h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 3vw, 50px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: #080808;
}

.signin-intro p {
    margin-top: 15px;
    max-width: 430px;
    color: #737373;
    font-size: 15px;
    line-height: 1.65;
}

.auth-status {
    display: none;
    width: 100%;
    margin: 0 0 22px;
    padding: 11px 13px;
    border: 1px solid #dddddd;
    color: #555555;
    background: #fafafa;
    font-size: 12px;
    line-height: 1.45;
}

.auth-status:not(:empty) {
    display: block;
}

.auth-status.error {
    border-color: #e0b3ae;
    color: var(--error);
    background: #fff8f7;
}

.auth-status.success {
    border-color: #b9ddca;
    color: var(--success);
    background: #f5fbf7;
}

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

.form-field label {
    display: block;
    margin-bottom: 9px;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
}

.password-label-row label {
    margin-bottom: 0;
}

.password-label-row a {
    color: #555555;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.password-label-row a:hover {
    color: #000000;
}

.form-field input:not([type="checkbox"]) {
    width: 100%;
    height: 53px;
    padding: 0 16px;
    border: 1px solid #d7d7d7;
    border-radius: 0;
    outline: none;
    background: #ffffff;
    color: #090909;
    font-size: 16px; /* Changed from 15px to prevent iOS zoom */
    font-weight: 500;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.18s ease;
}

.form-field input:not([type="checkbox"])::placeholder {
    color: #a2a2a2;
}

.form-field input:not([type="checkbox"]):hover {
    border-color: #bcbcbc;
}

.form-field input:not([type="checkbox"]):focus {
    border-color: #111111;
    box-shadow: none;
}

.form-field.has-error input:not([type="checkbox"]) {
    border-color: var(--error);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 56px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    width: 54px;
    height: 53px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    color: #676767;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:focus,
.password-toggle:focus-visible,
.password-toggle:active {
    background: transparent;
    color: #676767;
    border: 0;
    outline: none;
    box-shadow: none;
    transform: translateY(-50%);
}

.eye-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 20px;
    fill: none;
    pointer-events: none;
}

.eye-icon path,
.eye-icon circle {
    fill: none;
    stroke: #676767;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eye-slash {
    display: block;
}

.password-toggle.is-visible .eye-slash {
    display: none;
}

.password-toggle.is-visible .eye-pupil {
    display: block;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--error);
    font-size: 12px;
    line-height: 1.4;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    cursor: pointer;
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1px solid #bdbdbd;
    background: #ffffff;
}

.remember-option input:checked + .custom-checkbox {
    background: #050505;
    border-color: #050505;
}

.remember-option input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 5px;
    left: 4px;
    top: 5px;
    border-left: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;
    transform: rotate(-45deg);
}

.signin-button {
    width: 100%;
    height: 56px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    border-radius: 0;
    outline: none;
}

.signin-button:hover {
    background: #1b1b1b;
}

.signin-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

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

.form-divider::before,
.form-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e5e5;
}

.form-divider span {
    color: #999999;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.google-button {
    width: 100%;
    height: 54px;
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    padding: 0 16px;
    background: #ffffff;
    color: #151515;
    border: 1px solid #d5d5d5;
    border-radius: 0;
    cursor: pointer;
    outline: none;
}

.google-button:hover {
    border-color: #111111;
    background: #fafafa;
}

.google-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.google-icon {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.google-label {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.google-spacer {
    width: 28px;
}

.create-account {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 27px;
    color: #777777;
    font-size: 13px;
}

.create-account a {
    color: #080808;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.support-text {
    margin-top: 13px;
    text-align: center;
    color: #9a9a9a;
    font-size: 12px;
}

.support-text a {
    color: #333333;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .signin-main {
        grid-template-columns: 53% 47%;
    }
    .brand-panel-content {
        padding-left: 6vw;
        padding-right: 6vw;
    }
    .signin-form-panel {
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .brand-panel-copy h1 {
        font-size: clamp(56px, 5.8vw, 84px);
    }
}

@media (max-width: 900px) {
    .signin-header {
        height: 68px;
        padding: 0 26px;
    }
    .signin-main {
        display: block;
        min-height: auto;
    }
    .signin-brand-panel {
        min-height: 430px;
        height: 430px;
    }
    .brand-panel-content {
        min-height: 430px;
        padding: 55px 34px;
    }
    .brand-panel-copy h1 {
        font-size: clamp(54px, 9vw, 78px);
    }
    .brand-panel-copy p {
        max-width: 420px;
        margin-top: 25px;
        font-size: 14px;
    }
    .signin-form-panel {
        padding: 62px 34px 72px;
    }
    .signin-form-wrapper {
        max-width: 580px;
    }
}

@media (max-width: 600px) {
    .signin-header {
        height: 64px;
        padding: 0 20px;
    }
    .signin-logo {
        font-size: 27px;
    }
    .signin-brand-panel {
        min-height: 365px;
        height: 365px;
    }
    .brand-panel-content {
        min-height: 365px;
        padding: 35px 23px;
        justify-content: center;
    }
    .brand-panel-copy h1 {
        font-size: clamp(48px, 14vw, 69px);
        line-height: 0.94;
    }
    .brand-panel-copy p {
        margin-top: 21px;
        font-size: 13px;
        line-height: 1.55;
    }
    .signin-form-panel {
        padding: 48px 21px 58px;
    }
    .signin-intro {
        margin-bottom: 25px;
    }
    .signin-intro h2 {
        font-size: 34px;
    }
    .signin-intro p {
        margin-top: 12px;
        font-size: 14px;
    }
    .auth-status {
        margin-bottom: 20px;
    }
    .signin-button {
        height: 55px;
    }
    .google-button {
        height: 53px;
    }
}

@media (max-width: 380px) {
    .signin-brand-panel {
        min-height: 335px;
        height: 335px;
    }
    .brand-panel-content {
        min-height: 335px;
    }
    .brand-panel-copy h1 {
        font-size: 43px;
    }
    .signin-form-panel {
        padding-left: 17px;
        padding-right: 17px;
    }
    .signin-intro h2 {
        font-size: 31px;
    }
}

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