/* =========================================================
   IMP — INSTITUTION MANAGEMENT PORTAL
   Registration Page Styles
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --text: #172033;
    --text-light: #667085;
    --muted: #98a2b3;

    --border: #dfe3e8;
    --bg: #f6f8fc;
    --white: #ffffff;

    --success: #16a34a;
    --danger: #dc2626;

    --radius: 14px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PAGE
========================================================= */

.register-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 42% 58%;
}


/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.register-brand {
    position: relative;

    min-height: 100vh;

    padding: 55px 60px;

    background:
        linear-gradient(
            145deg,
            #0f2f75 0%,
            #2563eb 55%,
            #3b82f6 100%
        );

    color: var(--white);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;
}

.register-brand::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -190px;
    top: -160px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);
}

.register-brand::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -160px;
    bottom: -130px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
}


/* Brand Content */

.brand-content {
    position: relative;

    z-index: 2;

    max-width: 520px;

    margin: auto 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    width: 115px;
    height: 115px;

    object-fit: contain;

    background: transparent;

    margin-bottom: 25px;
}

.brand-label {
    display: block;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;

    opacity: 0.8;
}

.brand-content h1 {
    margin-top: 15px;

    font-size: clamp(32px, 3.4vw, 52px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: 800;
}

.brand-content h1 span {
    display: block;

    opacity: 0.85;
}

.brand-content > p {
    margin-top: 20px;

    max-width: 480px;

    font-size: 14px;

    line-height: 1.75;

    opacity: 0.88;
}


/* Brand Points */

.brand-points {
    margin-top: 35px;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.brand-point {
    display: flex;
    align-items: flex-start;

    gap: 12px;
}

.brand-point > span {
    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 800;

    flex-shrink: 0;
}

.brand-point div {
    display: flex;
    flex-direction: column;
}

.brand-point strong {
    font-size: 12px;
}

.brand-point small {
    margin-top: 4px;

    font-size: 10px;

    line-height: 1.5;

    opacity: 0.72;
}


/* Brand Footer */

.brand-footer {
    position: relative;

    z-index: 2;

    font-size: 9px;

    opacity: 0.65;
}


/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.register-form-panel {
    min-height: 100vh;

    padding: 42px 55px;

    background: var(--white);

    overflow-y: auto;
}

.register-container {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
}


/* Mobile Logo */

.mobile-logo {
    display: none;
}


/* =========================================================
   HEADING
========================================================= */

.register-heading {
    margin-bottom: 25px;
}

.register-heading > span {
    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;

    color: var(--primary);
}

.register-heading h2 {
    margin-top: 7px;

    font-size: 29px;

    line-height: 1.2;

    letter-spacing: -0.5px;
}

.register-heading p {
    margin-top: 7px;

    font-size: 11px;

    color: var(--text-light);
}


/* =========================================================
   PROGRESS
========================================================= */

.registration-progress {
    display: flex;
    align-items: center;

    margin-bottom: 30px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.progress-step span {
    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #eef2f6;

    color: var(--text-light);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 800;
}

.progress-step small {
    font-size: 9px;

    color: var(--text-light);

    font-weight: 600;
}

.progress-step.active span {
    background: var(--primary);
    color: var(--white);
}

.progress-step.active small {
    color: var(--primary);
}

.progress-line {
    flex: 1;

    height: 1px;

    background: var(--border);

    margin: 0 12px;
}


/* =========================================================
   FORM SECTION
========================================================= */

.form-section {
    padding: 23px;

    margin-bottom: 18px;

    background: #fbfcfe;

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.section-title {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 21px;
}

.section-number {
    width: 34px;
    height: 34px;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;

    font-weight: 800;

    flex-shrink: 0;
}

.section-title h3 {
    font-size: 14px;
}

.section-title p {
    margin-top: 4px;

    font-size: 9px;

    color: var(--text-light);
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.form-group {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}


/* Labels */

.form-group label {
    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 700;

    color: #344054;
}

.form-group label span {
    color: var(--danger);

    margin-left: 2px;
}


/* Inputs */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--white);

    color: var(--text);

    outline: none;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    height: 43px;

    padding: 0 12px;
}

.form-group textarea {
    padding: 11px 12px;

    min-height: 82px;

    resize: vertical;

    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b7c3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.09);
}

.form-group select {
    cursor: pointer;
}


/* Help */

.field-help {
    margin-top: 5px;

    font-size: 8px;

    color: var(--text-light);
}


/* =========================================================
   TERMS
========================================================= */

.terms-section {
    padding: 15px 18px;

    background: var(--white);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    cursor: pointer;
}

.checkbox-label input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 17px;
    height: 17px;

    border: 1px solid #cbd5e1;

    border-radius: 4px;

    background: var(--white);

    flex-shrink: 0;

    position: relative;

    margin-top: 1px;
}

.checkbox-label input:checked + .custom-checkbox {
    background: var(--primary);

    border-color: var(--primary);
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: "✓";

    position: absolute;

    left: 3px;
    top: -1px;

    color: var(--white);

    font-size: 12px;

    font-weight: 800;
}

.checkbox-text {
    font-size: 9px;

    line-height: 1.6;

    color: var(--text-light);
}

.checkbox-text a {
    color: var(--primary);

    font-weight: 700;
}

.checkbox-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.register-button {
    width: 100%;

    height: 50px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);

    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.2);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.register-button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.25);
}

.register-button:active {
    transform: translateY(0);
}

.button-arrow {
    font-size: 17px;

    line-height: 1;
}


/* =========================================================
   LOGIN LINK
========================================================= */

.login-link {
    margin-top: 17px;

    text-align: center;

    font-size: 10px;

    color: var(--text-light);
}

.login-link a {
    margin-left: 4px;

    color: var(--primary);

    font-weight: 700;
}

.login-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY NOTICE
========================================================= */

.security-notice {
    margin-top: 22px;

    padding: 13px 15px;

    background: #f8fafc;

    border: 1px solid var(--border);

    border-radius: 10px;

    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.security-icon {
    font-size: 17px;

    line-height: 1;
}

.security-notice strong {
    display: block;

    font-size: 10px;
}

.security-notice p {
    margin-top: 3px;

    font-size: 8px;

    line-height: 1.5;

    color: var(--text-light);
}


/* =========================================================
   FORM VALIDATION STATES
========================================================= */

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);

    background: #fffafa;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: var(--success);
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .register-page {
        grid-template-columns: 38% 62%;
    }

    .register-brand {
        padding: 40px;
    }

    .register-form-panel {
        padding: 38px 35px;
    }

    .brand-content h1 {
        font-size: 38px;
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 850px) {

    .register-page {
        display: block;
    }

    .register-brand {
        display: none;
    }

    .register-form-panel {
        min-height: 100vh;

        padding: 30px 25px;
    }

    .mobile-logo {
        display: flex;

        justify-content: center;

        margin-bottom: 20px;
    }

    .mobile-logo img {
        width: 80px;
        height: 80px;

        object-fit: contain;
    }

    .register-container {
        max-width: 680px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

    .register-form-panel {
        padding: 22px 15px;
    }

    .register-heading {
        margin-bottom: 22px;
    }

    .register-heading h2 {
        font-size: 24px;
    }

    .registration-progress {
        margin-bottom: 22px;
    }

    .progress-step small {
        display: none;
    }

    .progress-line {
        margin: 0 8px;
    }

    .form-section {
        padding: 17px 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .full-width {
        grid-column: auto;
    }

    .section-title {
        margin-bottom: 17px;
    }

    .section-title h3 {
        font-size: 13px;
    }

    .section-title p {
        font-size: 8px;
    }

    .register-button {
        height: 48px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .register-form-panel {
        padding: 18px 11px;
    }

    .form-section {
        padding: 14px 11px;
    }

    .register-heading h2 {
        font-size: 21px;
    }

    .form-group input,
    .form-group select {
        height: 41px;
    }

    .checkbox-text {
        font-size: 8px;
    }
}