@font-face {
    font-family: "Al Jazeera Arabic";
    src: url("../fonts/Al-Jazeera-Arabic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    direction: rtl;
    color: #162330;
    background: #eef3f6;
    font-family: "Al Jazeera Arabic", Tahoma, Arial, sans-serif;
}

.register-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(11, 24, 36, .88), rgba(28, 76, 89, .72)),
        url("../img/Main7.jpg") center/cover fixed no-repeat;
}

.register-header {
    padding: 18px 0;
    color: #fff;
}

.register-header__inner,
.register-wrap {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.register-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.register-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.register-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.register-login {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    padding: 9px 16px;
    text-decoration: none;
    font-weight: 700;
}

.register-wrap {
    padding: 22px 0 52px;
}

.register-panel {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(9, 20, 31, .28);
}

.register-panel__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border-bottom: 1px solid #e8edf1;
    background: #fbfcfd;
}

.register-panel__head h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
}

.register-panel__head p {
    margin: 0;
    color: #617182;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    color: #12312e;
    background: #dff3ed;
    font-weight: 800;
}

.register-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #12212f;
    font-size: 20px;
    font-weight: 800;
}

.form-section__title::before {
    content: "";
    width: 6px;
    height: 28px;
    border-radius: 4px;
    background: #dba642;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field--wide {
    grid-column: 1 / -1;
}

.field label {
    margin: 0;
    color: #253545;
    font-weight: 800;
}

.field input,
.field select,
.form-control {
    min-height: 46px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    color: #17212b;
    background: #fff;
    font-size: 16px;
    box-shadow: none;
}

.field input:focus,
.field select:focus,
.form-control:focus {
    border-color: #c8942f;
    box-shadow: 0 0 0 3px rgba(216, 162, 65, .18);
    outline: 0;
}

.help-text,
.field-error {
    color: #6d7d8c;
    font-size: 13px;
}

.field-error {
    display: none;
    color: #b42318;
    font-weight: 700;
}

.security-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-right: 4px solid #dba642;
    border-radius: 6px;
    background: #fff7e7;
    color: #5b4320;
}

.account-note {
    background: #eef7ff;
    border-right-color: #2f80c8;
    color: #25415c;
}

.server-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 6px;
    border-right: 4px solid #b42318;
    color: #7a271a;
    background: #fff1f0;
    font-weight: 700;
}

.verification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.verification-list {
    margin: 0;
    padding: 0 20px 0 0;
    color: #435466;
}

.verification-list li {
    margin-bottom: 8px;
}

.verification-samples {
    display: flex;
    gap: 10px;
}

.verification-samples img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8ef;
}

.upload-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px dashed #b7c3cf;
    border-radius: 8px;
    background: #f8fafc;
}

.upload-box img {
    width: 160px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #edf1f5;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

.btn-submit {
    min-height: 50px;
    padding: 10px 24px;
    border: 0;
    border-radius: 6px;
    color: #101820;
    background: #e5b451;
    font-size: 17px;
    font-weight: 900;
}

.btn-submit:hover,
.btn-submit:focus {
    color: #101820;
    background: #d8a241;
}

#loadingIndicator {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

#loadingIndicator .overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 20, 31, .62);
}

#loadingIndicator .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, .35);
    border-top-color: #e5b451;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#toast-container > div {
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 820px) {
    .register-header__inner,
    .register-panel__head,
    .verification-layout,
    .upload-box {
        grid-template-columns: 1fr;
    }

    .register-header__inner {
        display: grid;
        text-align: center;
    }

    .register-brand {
        justify-content: center;
    }

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

    .register-form,
    .register-panel__head {
        padding: 22px;
    }
}
