* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eeeeee;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

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

.auth-page {
    display: flex;
    min-height: 100vh;
    padding: 10px;
}

.auth-info,
.auth-panel {
    min-height: calc(100vh - 20px);
    width: 50%;
}

.auth-info {
    background: #f7f7fb;
    border-radius: 14px 0 0 14px;
    color: #07080d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
}

.auth-panel {
    align-items: center;
    background: #07080d;
    border-radius: 0 14px 14px 0;
    display: flex;
    justify-content: center;
    padding: 60px;
}

.auth-login .auth-info,
.auth-login .auth-panel {
    padding: 48px 60px;
}

.auth-register .auth-info,
.auth-register .auth-panel {
    padding: 44px 60px;
}

.auth-register .auth-info {
    background: #974ff5;
    color: #ffffff;
}

.auth-logo {
    align-items: center;
    display: flex;
    font-size: 30px;
    gap: 14px;
}

.auth-logo span {
    font-size: 34px;
    font-weight: bold;
}

.auth-message {
    max-width: 760px;
}

.auth-message p,
.auth-kicker {
    color: #7d7f8a;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 6px;
    margin: 0 0 28px;
    text-transform: uppercase;
}

.auth-register .auth-message p {
    color: #ffffff;
}

.auth-message h1 {
    font-size: 54px;
    font-weight: normal;
    line-height: 1.15;
    margin: 0;
}

.auth-login .auth-message h1 {
    font-size: 46px;
    line-height: 1.15;
}

.auth-register .auth-message h1 {
    font-size: 72px;
    line-height: 1;
}

.auth-register .auth-message h1 {
    font-size: 58px;
}

.auth-message em {
    color: #9854ff;
    font-style: italic;
}

.auth-register .auth-message em {
    color: #ffffff;
}

.auth-message ul {
    list-style: none;
    margin: 42px 0 0;
    padding: 0;
}

.auth-message li {
    font-size: 26px;
    margin-bottom: 18px;
}

.auth-message li span {
    font-family: "Courier New", monospace;
    font-size: 17px;
    font-weight: bold;
    margin-right: 18px;
}

.auth-copy {
    color: #777982;
    font-family: "Courier New", monospace;
    margin: 0;
}

.auth-register .auth-copy {
    color: #ffffff;
}

.auth-box {
    width: 480px;
}

.auth-kicker {
    color: #9ca3c1;
    margin-bottom: 18px;
}

.auth-box h2 {
    font-size: 58px;
    font-weight: normal;
    line-height: 1;
    margin: 0;
}

.auth-register .auth-box h2 {
    font-size: 50px;
}

.auth-login .auth-box h2 {
    font-size: 50px;
}

.auth-text {
    color: #aab0c8;
    font-size: 21px;
    line-height: 1.4;
    margin: 18px 0 48px;
}

.auth-login .auth-text {
    font-size: 19px;
    margin-bottom: 38px;
}

.auth-register .auth-text {
    font-size: 19px;
    margin-bottom: 34px;
}

.alert {
    border-radius: 10px;
    font-size: 15px;
    margin: 0 0 22px;
    padding: 13px 15px;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert.error {
    background: #351820;
    color: #ffb6c2;
}

.alert.success {
    background: #123026;
    color: #99efc8;
}

form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.auth-login form {
    gap: 22px;
}

.auth-register form {
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    width: 50%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-line {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

label,
.form-line label {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-line a {
    font-size: 14px;
    text-decoration: underline;
}

input {
    background: transparent;
    border: 0;
    border-bottom: 2px solid #3b3d45;
    color: #ffffff;
    font-size: 18px;
    height: 46px;
    outline: none;
}

input::placeholder {
    color: #9ea5bd;
}

input:focus {
    border-bottom-color: #bf71f5;
}

button {
    background: #bf71f5;
    border: 0;
    border-radius: 32px;
    color: #07080d;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    height: 60px;
    margin-top: 8px;
}

.auth-login button {
    height: 56px;
}

.auth-register button {
    height: 56px;
}

button span {
    margin-left: 8px;
}

.switch-page,
.small-note {
    color: #aab0c8;
    font-size: 17px;
    text-align: center;
}

.switch-page {
    margin: 38px 0 0;
}

.auth-login .switch-page {
    margin-top: 30px;
}

.switch-page a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

.small-note {
    font-size: 15px;
    margin: 18px 0 0;
}

.auth-register .switch-page {
    margin-top: 26px;
}

@media (max-width: 950px) {
    .auth-page {
        display: block;
    }

    .auth-info,
    .auth-panel {
        border-radius: 14px;
        min-height: auto;
        width: 100%;
    }

    .auth-info,
    .auth-panel {
        padding: 36px;
    }

    .auth-panel {
        margin-top: 12px;
    }

    .auth-message {
        margin: 80px 0;
    }

    .auth-message h1,
.auth-register .auth-message h1,
    .auth-box h2 {
        font-size: 42px;
    }

    .auth-message li {
        font-size: 22px;
    }

    .auth-box {
        width: 100%;
    }

    .form-row {
        display: block;
    }

    .form-row .form-group {
        margin-bottom: 26px;
        width: 100%;
    }
}

/* Compact register screen: keep the full form visible on common laptop heights. */
.auth-register.auth-page {
    min-height: 100vh;
    padding: 8px;
}

.auth-register .auth-info,
.auth-register .auth-panel {
    min-height: calc(100vh - 16px);
    padding: 28px 52px;
}

.auth-register .auth-logo {
    font-size: 25px;
    gap: 10px;
}

.auth-register .auth-logo span {
    font-size: 28px;
}

.auth-register .auth-message p,
.auth-register .auth-kicker {
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 14px;
}

.auth-register .auth-message h1 {
    font-size: clamp(38px, 5vw, 50px);
    line-height: 0.98;
}

.auth-register .auth-message ul {
    margin-top: 26px;
}

.auth-register .auth-message li {
    font-size: 20px;
    margin-bottom: 11px;
}

.auth-register .auth-message li span {
    font-size: 14px;
    margin-right: 12px;
}

.auth-register .auth-box {
    width: min(440px, 100%);
}

.auth-register .auth-box h2 {
    font-size: 38px;
}

.auth-register .auth-text {
    font-size: 16px;
    margin: 10px 0 20px;
}

.auth-register form {
    gap: 14px;
}

.auth-register .form-row {
    gap: 16px;
}

.auth-register .form-group {
    gap: 8px;
}

.auth-register label,
.auth-register .form-line label {
    font-size: 12px;
    letter-spacing: 0.8px;
}

.auth-register input {
    font-size: 16px;
    height: 38px;
}

.auth-register button {
    font-size: 16px;
    height: 48px;
    margin-top: 2px;
}

.auth-register .small-note {
    font-size: 13px;
    margin-top: 10px;
}

.auth-register .switch-page {
    font-size: 15px;
    margin-top: 14px;
}

.auth-register .alert {
    font-size: 13px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

@media (max-height: 760px) and (min-width: 951px) {
    .auth-register .auth-info,
    .auth-register .auth-panel {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .auth-register .auth-message h1 {
        font-size: 42px;
    }

    .auth-register .auth-message ul {
        margin-top: 18px;
    }

    .auth-register .auth-message li {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .auth-register .auth-box h2 {
        font-size: 34px;
    }

    .auth-register .auth-text {
        margin-bottom: 16px;
    }
}

@media (max-width: 950px) {
    .auth-register .auth-info,
    .auth-register .auth-panel {
        min-height: auto;
        padding: 28px;
    }

    .auth-register .auth-message {
        margin: 44px 0;
    }
}


/* Logo text-only cleanup */
.auth-logo { gap: 0; }

/* Align auth field colors with the rest of the dark UI. */
label,
.form-line label {
    color: #eef2ff;
}

input {
    border-bottom-color: #434a5d;
    color: #f5f7ff;
}

input::placeholder {
    color: #98a2b8;
}

input:focus {
    border-bottom-color: #bf71f5;
    box-shadow: 0 1px 0 0 #bf71f5;
}
