.register-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(34, 197, 94, 0.10),
            transparent 28%
        ),
        #f8fafc;
}

/* =========================
   Main
========================= */

.register-main {
    padding: 65px 0 90px;
}

.register-container {
    width: 90%;
    max-width: 850px;
    margin: 0 auto;
}


/* =========================
   Heading
========================= */

.register-heading {
    max-width: 700px;
    margin: 0 auto 35px;
    text-align: center;
}

.register-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
    padding: 7px 13px;

    border-radius: 999px;

    background: #dcfce7;
    color: #166534;

    font-size: 12px;
    font-weight: 700;
}

.register-heading h1 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
}

.register-heading p {
    margin: 0;

    color: #64748b;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================
   Form
========================= */

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================
   Cards
========================= */

.register-card {
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.04);
}


/* =========================
   Section title
========================= */

.register-section-title {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 25px;
}

.register-section-title > span {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #0f172a;
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}

.register-section-title h2 {
    margin: 0 0 4px;

    color: #0f172a;

    font-size: 18px;
    font-weight: 800;
}

.register-section-title p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================
   Grid
========================= */

.register-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}


/* =========================
   Form groups
========================= */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #0f172a;

    font-size: 13px;
    font-weight: 700;
}

.form-group label span {
    color: #dc2626;
}


/* =========================
   Inputs
========================= */

.form-group input {
    width: 100%;
    height: 49px;

    padding: 0 14px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;
    color: #0f172a;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:hover {
    border-color: #94a3b8;
}

.form-group input:focus {
    border-color: #22c55e;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.10);
}


/* =========================
   Terms
========================= */

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;

    color: #64748b;

    font-size: 13px;
    line-height: 1.7;
}

.terms-check input {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin-top: 3px;

    accent-color: #16a34a;
}

.terms-check a {
    color: #166534;

    font-weight: 700;
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}


/* =========================
   Submit
========================= */

.register-submit {
    width: 100%;
    height: 54px;

    border: 0;
    border-radius: 11px;

    background: #0f172a;
    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.register-submit:hover {
    background: #1e293b;
}

.register-submit:active {
    transform: translateY(1px);
}


/* =========================
   Login link
========================= */

.register-login {
    margin: 0;

    text-align: center;

    color: #64748b;

    font-size: 13px;
}

.register-login a {
    color: #166534;

    font-weight: 700;
    text-decoration: none;
}

.register-login a:hover {
    text-decoration: underline;
}


/* =========================
   Error
========================= */

.register-alert {
    margin-bottom: 20px;
    padding: 14px 16px;

    border: 1px solid #fecaca;
    border-radius: 10px;

    background: #fef2f2;
    color: #991b1b;

    font-size: 13px;
    line-height: 1.7;
}


/* =========================
   RTL / LTR
========================= */

html[dir="rtl"] .register-section-title {
    text-align: right;
}

html[dir="ltr"] .register-section-title {
    text-align: left;
}


/* =========================
   Tablet
========================= */

@media (max-width: 768px) {

    .register-main {
        padding: 45px 0 70px;
    }

    .register-heading h1 {
        font-size: 32px;
    }

    .register-card {
        padding: 24px;
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 650px) {

    .register-container {
        width: 92%;
    }

    .register-main {
        padding: 35px 0 55px;
    }

    .register-heading {
        margin-bottom: 25px;
    }

    .register-heading h1 {
        font-size: 28px;
    }

    .register-heading p {
        font-size: 14px;
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .full-width {
        grid-column: auto;
    }

    .register-card {
        padding: 20px 17px;
        border-radius: 15px;
    }

    .register-section-title {
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .form-group input {
        height: 48px;
    }

}