/* =========================================================
   BLUWORKFLOW - REGISTER
   ========================================================= */

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

:root {
    --navy: #071a3a;
    --navy-light: #10284f;
    --blue: #4f6df5;
    --blue-hover: #405de6;
    --purple: #7657f6;

    --text: #14213d;
    --text-muted: #64748b;

    --border: #dbe3ef;
    --background: #ffffff;
    --soft-background: #f7f9fc;

    --success: #16a36a;
    --error: #dc4c4c;
}

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

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--background);
}


/* =========================================================
   PAGE
   ========================================================= */

.register-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.95fr)
        minmax(500px, 1.05fr);
}


/* =========================================================
   LEFT BRAND PANEL
   ========================================================= */

.register-brand-panel {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(79, 109, 245, 0.32),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(118, 87, 246, 0.20),
            transparent 35%
        ),
        var(--navy);

    color: #ffffff;

    padding: 48px 64px;
}

.register-brand-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    right: -190px;
    top: -150px;
}

.register-brand-panel::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 50%;

    left: -150px;
    bottom: -140px;
}

.brand-content {
    position: relative;
    z-index: 1;

    min-height: calc(100vh - 96px);

    display: flex;
    flex-direction: column;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    width: fit-content;

    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #607cf8,
            #7657f6
        );

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    box-shadow:
        0 10px 30px
        rgba(79, 109, 245, 0.30);
}

.brand-name {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-message {
    margin: auto 0;

    max-width: 560px;

    padding: 70px 0;
}

.eyebrow,
.form-kicker {
    display: block;

    margin-bottom: 18px;

    color: #8298ff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.brand-message h1 {
    max-width: 520px;

    margin-bottom: 24px;

    font-size: clamp(40px, 4vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.brand-message > p {
    max-width: 520px;

    color: #b9c6dc;

    font-size: 17px;
    line-height: 1.7;
}

.benefits {
    margin-top: 38px;

    display: grid;
    gap: 18px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 13px;

    color: #dbe4f3;

    font-size: 15px;
}

.benefit-check {
    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(49, 196, 137, 0.12);

    color: #52d6a3;

    font-size: 13px;
    font-weight: 800;
}

.brand-footer {
    color: #8292ad;

    font-size: 13px;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.register-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 40px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcff 100%
        );
}

.register-form-wrapper {
    width: 100%;
    max-width: 470px;
}

.mobile-brand {
    display: none;

    margin-bottom: 50px;

    color: var(--text);
}

.form-heading {
    margin-bottom: 34px;
}

.form-kicker {
    color: var(--blue);

    margin-bottom: 12px;
}

.form-heading h2 {
    margin-bottom: 12px;

    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.form-heading p {
    color: var(--text-muted);

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.register-form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: var(--text);

    font: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

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

.form-group input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 4px
        rgba(79, 109, 245, 0.10);
}

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--blue);

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.field-help {
    color: #8a97aa;

    font-size: 12px;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.form-message {
    display: none;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 14px;
    line-height: 1.5;
}

.form-message.error {
    display: block;

    color: #a83232;

    background: #fff2f2;

    border: 1px solid #ffd5d5;
}

.form-message.success {
    display: block;

    color: #08784b;

    background: #effbf6;

    border: 1px solid #c7f0df;
}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.register-button {
    width: 100%;
    height: 54px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(79, 109, 245, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.register-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 32px
        rgba(79, 109, 245, 0.28);
}

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

.register-button:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   LINKS
   ========================================================= */

.sign-in-link {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #edf0f5;

    text-align: center;

    color: var(--text-muted);

    font-size: 14px;
}

.sign-in-link a {
    margin-left: 4px;

    color: var(--blue);

    font-weight: 750;

    text-decoration: none;
}

.sign-in-link a:hover {
    text-decoration: underline;
}

.back-home {
    margin-top: 25px;

    text-align: center;
}

.back-home a {
    color: #8490a2;

    font-size: 13px;

    text-decoration: none;
}

.back-home a:hover {
    color: var(--text);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .register-page {
        display: block;
    }

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

    .register-form-panel {
        min-height: 100vh;

        padding: 40px 24px;
    }

    .mobile-brand {
        display: block;
    }

}


@media (max-width: 520px) {

    .register-form-panel {
        align-items: flex-start;

        padding:
            28px
            20px
            40px;
    }

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

    .form-heading h2 {
        font-size: 32px;
    }

}