*{
    box-sizing: border-box;
}

.auth-page-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.auth-page {
    width: 100%;
    min-height: calc(100vh - 100px);
    padding: 50px 20px 70px;
    background: #ffffff;
}

.auth-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
}

.auth-brand-side {
    display: flex;
    align-items: center;
    padding: 55px 48px;
    background: #faf9f6;
}

.auth-side-content {
    width: 100%;
}

.auth-side-mark {
    margin-bottom: 8px;
    color: #b5121b;
    font-size: 25px;
    line-height: 1;
}

.auth-side-kicker {
    display: block;
    margin-bottom: 24px;
    color: #25292e;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.auth-side-content h1 {
    margin: 0 0 22px;
    color: #15171a;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
}

.auth-side-copy {
    margin: 0 0 22px;
    color: #555b61;
    font-size: 16px;
    line-height: 1.65;
}

.auth-benefits {
    margin: 0;
    padding-left: 22px;
    color: #353a40;
    font-size: 15px;
    line-height: 1.8;
}

.auth-benefits li {
    margin-bottom: 3px;
}

.auth-form-side {
    width: 100%;
    padding: 55px 50px;
    background: #ffffff;
}

.auth-form-head {
    margin-bottom: 30px;
}

.auth-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #d5bd68;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.auth-form-head h2 {
    margin: 0 0 14px;
    color: #15171a;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.auth-intro {
    margin: 0;
    color: #656b71;
    font-size: 15px;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f0bcbc;
    border-radius: 6px;
    background: #fff4f4;
    color: #b5121b;
    font-size: 13px;
    line-height: 1.5;
}

.auth-form {
    width: 100%;
}

.auth-field {
    width: 100%;
    margin-bottom: 22px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #25292e;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.auth-required {
    color: #b5121b;
}

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

.auth-label-row label {
    margin: 0;
}

.auth-label-row a {
    flex-shrink: 0;
    color: #b5121b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-label-row a:hover {
    color: #850b12;
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
    width: 100%;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    display: block;
    width: 100%;
    height: 54px;
    padding: 14px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #ffffff;
    color: #25292e;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input::placeholder {
    color: #999999;
}

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

.auth-form input:focus {
    border-color: #b5121b;
    box-shadow: 0 0 0 3px rgba(181, 18, 27, 0.08);
    outline: none;
}

.auth-field.has-error input {
    border-color: #b5121b;
}

.auth-error {
    display: block;
    margin-top: 7px;
    color: #b5121b;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.auth-input-password {
    position: relative;
}

.auth-input-password input {
    padding-right: 70px;
}

.auth-form .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: auto;
    min-width: 45px;
    height: 32px;
    margin: 0;
    padding: 5px 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #b5121b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.auth-form .password-toggle:hover {
    background: rgba(181, 18, 27, 0.07);
    color: #850b12;
    transform: translateY(-50%);
}

.auth-primary {
    display: block;
    width: 100%;
    height: 54px;
    margin: 8px 0 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 6px;
    background: #b5121b;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-primary:hover {
    background: #970f17;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(181, 18, 27, 0.20);
}

.auth-primary:active {
    transform: translateY(0);
}

.auth-switch {
    display: block;
    margin-top: 20px;
    color: #555b61;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.auth-switch a {
    color: #b5121b;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #850b12;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .auth-page {
        padding: 35px 18px 50px;
    }

    .auth-card {
        grid-template-columns: 1fr 1fr;
    }

    .auth-brand-side {
        padding: 40px 32px;
    }

    .auth-form-side {
        padding: 40px 32px;
    }

    .auth-side-content h1 {
        font-size: 32px;
    }

    .auth-form-head h2 {
        font-size: 26px;
    }
}

@media (max-width: 700px) {
    .auth-page {
        min-height: auto;
        padding: 20px 12px 40px;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        display: block;
        width: 100%;
        border-radius: 10px;
    }

    .auth-brand-side {
        display: block;
        padding: 30px 24px;
        text-align: left;
    }

    .auth-side-mark {
        font-size: 22px;
    }

    .auth-side-kicker {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .auth-side-content h1 {
        margin-bottom: 18px;
        font-size: 28px;
        line-height: 1.2;
    }

    .auth-side-copy {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.55;
    }

    .auth-benefits {
        padding-left: 20px;
        font-size: 14px;
        line-height: 1.65;
    }

    .auth-form-side {
        padding: 30px 24px 32px;
    }

    .auth-form-head {
        margin-bottom: 25px;
    }

    .auth-eyebrow {
        margin-bottom: 10px;
        font-size: 12px;
        letter-spacing: 1.7px;
    }

    .auth-form-head h2 {
        margin-bottom: 12px;
        font-size: 25px;
    }

    .auth-intro {
        font-size: 14px;
        line-height: 1.55;
    }

    .auth-field {
        margin-bottom: 20px;
    }

    .auth-field label {
        font-size: 14px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="tel"] {
        height: 52px;
        padding: 13px 14px;
        font-size: 15px;
    }

    .auth-label-row {
        gap: 10px;
    }

    .auth-label-row a {
        font-size: 12px;
    }

    .auth-primary {
        height: 52px;
        font-size: 15px;
    }

    .auth-switch {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .auth-page {
        padding: 12px 8px 30px;
    }

    .auth-card {
        border-radius: 8px;
    }

    .auth-brand-side {
        padding: 25px 18px;
    }

    .auth-side-content h1 {
        font-size: 25px;
    }

    .auth-side-copy {
        font-size: 14px;
    }

    .auth-benefits {
        font-size: 13px;
    }

    .auth-form-side {
        padding: 26px 18px 28px;
    }

    .auth-form-head h2 {
        font-size: 23px;
    }

    .auth-intro {
        font-size: 13px;
    }

    .auth-label-row {
        align-items: flex-start;
    }

    .auth-label-row a {
        white-space: nowrap;
    }

    .auth-switch {
        font-size: 13px;
    }
}

@media (max-width: 350px) {
    .auth-brand-side {
        padding: 22px 15px;
    }

    .auth-form-side {
        padding: 24px 15px 26px;
    }

    .auth-side-content h1 {
        font-size: 23px;
    }

    .auth-form-head h2 {
        font-size: 21px;
    }

    .auth-label-row {
        display: block;
    }

    .auth-label-row a {
        display: inline-block;
        margin-top: 7px;
    }
}
