:root {
    --navy: #031b2e;
    --navy-2: #062a45;
    --cyan: #15bdd7;
    --cyan-dark: #079ab7;
    --text: #08233d;
    --muted: #78899a;
    --border: #dce6ee;
    --page: #f5f9fc;
    --danger: #d8404e;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    background: var(--page);
    color: var(--text);
    font-family: "Tajawal", sans-serif;
}

a {
    text-decoration: none;
}

.register-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(560px, 56%) minmax(360px, 44%);
    direction: ltr;
}

.register-panel,
.register-visual {
    direction: rtl;
}

.register-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 54px;
    background:
        radial-gradient(circle at 20% 15%, rgba(21, 189, 215, .08), transparent 34%),
        #f8fbfd;
}

.back-link {
    position: absolute;
    top: 24px;
    right: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64778a;
    font-size: 14px;
    font-weight: 700;
}

.back-link:hover {
    color: var(--cyan-dark);
}

.register-card {
    width: 100%;
    max-width: 760px;
    padding: 30px 34px 28px;
    border: 1px solid #e1e9ef;
    border-radius: 26px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(10, 39, 64, .09);
}

.register-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.register-brand img {
    width: 130px;
    height: auto;
}

.trial-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid rgba(21, 189, 215, .28);
    border-radius: 999px;
    background: #edfafd;
    color: #087f97;
    font-size: 13px;
    font-weight: 800;
}

.register-heading {
    margin-bottom: 22px;
}

.register-heading > span {
    display: block;
    margin-bottom: 5px;
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 800;
}

.register-heading h1 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.25;
}

.register-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.register-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    font-size: 14px;
}

.register-form {
    margin-top: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 16px;
}

.field-span-2 {
    grid-column: span 2;
}

.field-group label {
    display: block;
    margin-bottom: 7px;
    color: #1a344c;
    font-size: 14px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #8fa1b2;
    font-size: 18px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 45px 0 14px;
    border: 1px solid #cfdce6;
    border-radius: 13px;
    outline: none;
    background: #f9fbfd;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.input-wrap input[dir="ltr"] {
    text-align: left;
    padding-right: 45px;
}

.input-wrap input:focus {
    border-color: var(--cyan);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 189, 215, .11);
}

.input-wrap input.is-invalid {
    border-color: #e16974;
}

.field-help,
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
}

.field-help {
    color: #8998a6;
}

.field-error {
    color: var(--danger);
    font-weight: 700;
}

.trial-summary {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    margin: 24px 0 18px;
    padding: 15px 16px;
    border: 1px solid #c9edf4;
    border-radius: 15px;
    background: #effbfe;
}

.trial-summary > div:first-child {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: white;
    color: var(--cyan-dark);
    font-size: 20px;
}

.trial-summary strong,
.trial-summary span {
    display: block;
}

.trial-summary strong {
    margin-bottom: 3px;
    color: #0b5367;
    font-size: 14px;
    font-weight: 900;
}

.trial-summary span {
    color: #607d89;
    font-size: 12px;
    line-height: 1.65;
}

.register-submit {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #089db9, #20c5dc);
    color: white;
    font-family: inherit;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(21, 189, 215, .2);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.register-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(21, 189, 215, .27);
}

.login-note {
    margin-top: 15px;
    text-align: center;
    color: #8493a2;
    font-size: 13px;
}

.login-note a {
    color: var(--cyan-dark);
    font-weight: 800;
}

.website-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.register-visual {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    background-color: #031b2e;
    background-image: url('../images/brand/rig_background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

@media (max-width: 1100px) {
    .register-page {
        grid-template-columns: minmax(520px, 62%) minmax(320px, 38%);
    }

    .register-panel {
        padding-inline: 34px;
    }

}

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

    .register-visual {
        display: none;
    }

    .register-panel {
        min-height: 100vh;
        padding: 78px 22px 30px;
    }

    .back-link {
        top: 20px;
        right: 22px;
    }

    .register-card {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .register-panel {
        padding: 68px 14px 20px;
    }

    .back-link {
        right: 16px;
        font-size: 13px;
    }

    .register-card {
        padding: 23px 18px 22px;
        border-radius: 21px;
    }

    .register-brand {
        align-items: flex-start;
    }

    .register-brand img {
        width: 112px;
    }

    .trial-pill {
        padding: 7px 10px;
        font-size: 11px;
    }

    .register-heading {
        margin-bottom: 19px;
    }

    .register-heading h1 {
        font-size: 28px;
    }

    .register-heading p {
        font-size: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .input-wrap input {
        height: 54px;
        font-size: 16px;
    }

    .trial-summary {
        grid-template-columns: 38px 1fr;
        padding: 13px;
    }

    .trial-summary > div:first-child {
        width: 38px;
        height: 38px;
    }

    .register-submit {
        min-height: 56px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .register-card {
        padding-inline: 15px;
    }

    .register-brand {
        gap: 10px;
    }

    .register-brand img {
        width: 100px;
    }

    .trial-pill {
        white-space: nowrap;
    }
}
