/* =========================================================
   HireNova
   Registration Page
   Professional Split-Screen Design
   Equal Height + Responsive + Smart Layout
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --text-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-light: #edf2f7;

    --white: #ffffff;
    --background: #f8fafc;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --shadow:
        0 25px 70px rgba(15, 23, 42, 0.12);

    --radius-xl: 28px;

}


/* =========================================================
   GLOBAL RESET
========================================================= */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef4ff 100%
        );

    color: var(--text-main);

    -webkit-font-smoothing: antialiased;

}


button,
input,
select {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;
    text-decoration: none;

}


/* =========================================================
   MAIN PAGE
========================================================= */

.registration-page {

    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}


/* =========================================================
   MAIN TWO-COLUMN LAYOUT
========================================================= */

.registration-page {

    max-width: 1500px;

    margin: 0 auto;

}


/* =========================================================
   LEFT VISUAL PANEL
========================================================= */

.registration-visual {

    position: relative;

    width: 50%;

    min-height: 850px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 48px 52px;

    border-radius:
        var(--radius-xl) 0 0 var(--radius-xl);

    background:

        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.96),
            rgba(30, 64, 175, 0.92)
        ),

        url("../images/banners/register-banner.png");

    background-size: cover;

    background-position: center;

    color: var(--white);

}


/* =========================================================
   VISUAL OVERLAY
========================================================= */

.visual-overlay {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 15% 15%,
            rgba(59, 130, 246, 0.28),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.94),
            rgba(30, 64, 175, 0.78)
        );

    z-index: 0;

}


/* =========================================================
   VISUAL CONTENT
========================================================= */

.visual-content,
.visual-footer {

    position: relative;

    z-index: 2;

}


/* =========================================================
   BRAND LOGO
========================================================= */

.brand-logo {

    display: inline-flex;

    align-items: center;

    width: fit-content;

}


.brand-logo img {

    display: block;

    width: 175px;

    height: auto;

    object-fit: contain;

    filter:
        brightness(0)
        invert(1);

}


/* =========================================================
   VISUAL MESSAGE
========================================================= */

.visual-message {

    max-width: 570px;

    margin-top: 100px;

}


.visual-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 14px;

    border:
        1px solid
        rgba(255,255,255,0.22);

    border-radius: 999px;

    background:
        rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    color: #dbeafe;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.4px;

}


.visual-eyebrow i {

    color: #93c5fd;

}


.visual-message h1 {

    margin-top: 26px;

    font-size: clamp(
        42px,
        4vw,
        62px
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2.5px;

}


.visual-message p {

    max-width: 500px;

    margin-top: 24px;

    color:
        rgba(255,255,255,0.78);

    font-size: 16px;

    line-height: 1.8;

}


/* =========================================================
   VISUAL FEATURES
========================================================= */

.visual-features {

    display: flex;

    flex-direction: column;

    gap: 20px;

    margin-top: 42px;

}


.visual-feature {

    display: flex;

    align-items: center;

    gap: 16px;

}


.feature-icon {

    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.16);

    border-radius: 14px;

    background:
        rgba(255,255,255,0.09);

    color: #bfdbfe;

    font-size: 17px;

}


.visual-feature strong {

    display: block;

    margin-bottom: 4px;

    font-size: 14px;

    font-weight: 700;

}


.visual-feature span {

    display: block;

    color:
        rgba(255,255,255,0.62);

    font-size: 13px;

}


/* =========================================================
   VISUAL FOOTER
========================================================= */

.visual-footer {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-top: 30px;

    border-top:
        1px solid
        rgba(255,255,255,0.14);

    color:
        rgba(255,255,255,0.62);

    font-size: 12px;

}


.visual-footer i {

    color: #60a5fa;

    font-size: 15px;

}


/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.registration-form-panel {

    width: 50%;

    min-height: 850px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 48px 58px;

    background:
        rgba(255,255,255,0.98);

    border-radius:
        0 var(--radius-xl) var(--radius-xl) 0;

}


/* =========================================================
   FORM WRAPPER
========================================================= */

.registration-form-wrapper {

    width: 100%;

    max-width: 520px;

}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand {

    display: none;

}


.mobile-brand img {

    width: 165px;

    height: auto;

}


/* =========================================================
   FORM HEADER
========================================================= */

.form-header {

    margin-bottom: 28px;

}


.form-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    border-radius: 999px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}


.form-header h2 {

    margin-top: 18px;

    color:
        var(--text-dark);

    font-size: 32px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -1px;

}


.form-header p {

    margin-top: 10px;

    color:
        var(--text-muted);

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================================
   ALERT
========================================================= */

.registration-alert {

    display: flex;

    gap: 12px;

    align-items: flex-start;

    margin-bottom: 22px;

    padding: 13px 15px;

    border-radius: 12px;

    font-size: 13px;

    line-height: 1.5;

}


.alert-icon {

    flex: 0 0 auto;

    margin-top: 2px;

}


.alert-content {

    flex: 1;

}


.alert-content a {

    display: inline-block;

    margin-top: 5px;

    color: inherit;

    font-weight: 700;

    text-decoration: underline;

}


.alert-success {

    border:
        1px solid
        #bbf7d0;

    background:
        #f0fdf4;

    color:
        #166534;

}


.alert-warning {

    border:
        1px solid
        #fde68a;

    background:
        #fffbeb;

    color:
        #92400e;

}


.alert-error {

    border:
        1px solid
        #fecaca;

    background:
        #fef2f2;

    color:
        #991b1b;

}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {

    margin-bottom: 19px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color:
        var(--text-main);

    font-size: 13px;

    font-weight: 700;

}


.form-group label span {

    color:
        var(--danger);

}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrapper {

    position: relative;

}


.input-wrapper > i {

    position: absolute;

    left: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        #94a3b8;

    font-size: 14px;

    pointer-events: none;

    z-index: 2;

}


.input-wrapper input,
.input-wrapper select {

    width: 100%;

    min-height: 50px;

    padding:
        0 16px 0 44px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    outline: none;

    background:
        #ffffff;

    color:
        var(--text-dark);

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.input-wrapper input::placeholder {

    color:
        #a8b3c2;

}


.input-wrapper input:hover,
.input-wrapper select:hover {

    border-color:
        #cbd5e1;

}


.input-wrapper input:focus,
.input-wrapper select:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(37,99,235,0.10);

    background:
        #ffffff;

}


/* =========================================================
   SELECT
========================================================= */

.select-wrapper select {

    appearance: none;

    cursor: pointer;

}


.select-wrapper::after {

    content:
        "\f078";

    position: absolute;

    right: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    color:
        #94a3b8;

    pointer-events: none;

}


/* =========================================================
   FIELD HINT
========================================================= */

.field-hint {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 7px;

    color:
        var(--text-light);

    font-size: 11px;

}


.field-hint i {

    color:
        #94a3b8;

}


/* =========================================================
   FORM ROW
========================================================= */

.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    position: absolute;

    top: 50%;

    right: 12px;

    transform:
        translateY(-50%);

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 8px;

    background:
        transparent;

    color:
        #94a3b8;

}


.password-toggle:hover {

    background:
        var(--primary-light);

    color:
        var(--primary);

}


.password-wrapper input {

    padding-right: 52px;

}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {

    margin-top: 12px;

    padding: 12px;

    border:
        1px solid
        var(--border-light);

    border-radius: 10px;

    background:
        #f8fafc;

}


.strength-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 8px;

}


.strength-header span {

    color:
        var(--text-muted);

    font-size: 11px;

}


.strength-header strong {

    color:
        var(--text-light);

    font-size: 11px;

}


.strength-bar {

    width: 100%;

    height: 4px;

    overflow: hidden;

    border-radius: 999px;

    background:
        #e2e8f0;

}


.strength-bar span {

    display: block;

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        var(--primary);

    transition:
        width .3s ease;

}


/* =========================================================
   PASSWORD RULES
========================================================= */

.password-rules {

    display: flex;

    flex-wrap: wrap;

    gap:
        6px 12px;

    margin-top: 10px;

}


.password-rules span {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color:
        #94a3b8;

    font-size: 10px;

}


.password-rules i {

    font-size: 7px;

}


.password-rules span.valid {

    color:
        var(--success);

}


.password-rules span.valid i {

    font-size: 10px;

}


/* =========================================================
   PASSWORD MATCH
========================================================= */

.password-match {

    min-height: 18px;

    margin-top: 7px;

    font-size: 11px;

}


.match-success {

    color:
        var(--success);

}


.match-error {

    color:
        var(--danger);

}


/* =========================================================
   TERMS
========================================================= */

.terms-row {

    margin:
        22px 0;

}


.checkbox-container {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;

}


.checkbox-container input {

    position: absolute;

    opacity: 0;

}


.custom-checkbox {

    width: 18px;

    height: 18px;

    flex: 0 0 18px;

    margin-top: 1px;

    border:
        1px solid
        #cbd5e1;

    border-radius: 5px;

    background:
        #ffffff;

    transition:
        .2s ease;

}


.checkbox-container input:checked
+ .custom-checkbox {

    border-color:
        var(--primary);

    background:
        var(--primary);

    box-shadow:
        inset 0 0 0 4px
        #ffffff;

}


.terms-text {

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.6;

}


.terms-text a {

    color:
        var(--primary);

    font-weight: 600;

}


.terms-text a:hover {

    text-decoration: underline;

}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.register-submit {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:
        #ffffff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 10px 24px
        rgba(37,99,235,0.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;

}


.register-submit:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 14px 30px
        rgba(37,99,235,0.28);

}


.register-submit:active {

    transform:
        translateY(0);

}


.register-submit:disabled {

    opacity: .75;

    cursor:
        not-allowed;

}


.button-text {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}


.button-loading {

    display: none;

    align-items: center;

    gap: 9px;

}


.register-submit.loading
.button-text {

    display: none;

}


.register-submit.loading
.button-loading {

    display: inline-flex;

}


/* =========================================================
   LOGIN PROMPT
========================================================= */

.login-prompt {

    margin-top: 22px;

    text-align: center;

    color:
        var(--text-muted);

    font-size: 12px;

}


.login-prompt a {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-left: 4px;

    color:
        var(--primary);

    font-weight: 700;

}


.login-prompt a:hover {

    text-decoration: underline;

}


/* =========================================================
   SECURITY NOTICE
========================================================= */

.security-notice {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 24px;

    padding-top: 18px;

    border-top:
        1px solid
        var(--border-light);

    color:
        var(--text-light);

    font-size: 10px;

    line-height: 1.6;

}


.security-notice i {

    margin-top: 2px;

    color:
        var(--success);

}


/* =========================================================
   HONEYPOT
========================================================= */

.honeypot-field {

    position: absolute !important;

    left: -9999px !important;

    width: 1px !important;

    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (
    min-width: 1200px
) {

    .registration-page {

        min-height: 100vh;

        padding:
            40px 50px;

    }


    .registration-visual,
    .registration-form-panel {

        min-height:
            850px;

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (
    max-width: 1100px
) {

    .registration-page {

        padding:
            25px;

    }


    .registration-visual {

        padding:
            40px;

    }


    .registration-form-panel {

        padding:
            40px;

    }


    .visual-message {

        margin-top:
            70px;

    }


    .visual-message h1 {

        font-size:
            44px;

    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (
    max-width: 900px
) {

    .registration-page {

        display:
            block;

        padding:
            25px;

    }


    .registration-visual {

        width:
            100%;

        min-height:
            560px;

        border-radius:
            var(--radius-xl)
            var(--radius-xl)
            0
            0;

    }


    .registration-form-panel {

        width:
            100%;

        min-height:
            auto;

        border-radius:
            0
            0
            var(--radius-xl)
            var(--radius-xl);

        padding:
            45px;

    }


    .visual-message {

        margin-top:
            60px;

    }


    .visual-message h1 {

        font-size:
            46px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 640px
) {

    body {

        background:
            #ffffff;

    }


    .registration-page {

        display:
            block;

        padding:
            0;

    }


    .registration-visual {

        display:
            none;

    }


    .registration-form-panel {

        min-height:
            100vh;

        display:
            block;

        padding:
            28px 20px 35px;

        border-radius:
            0;

    }


    .registration-form-wrapper {

        max-width:
            100%;

    }


    .mobile-brand {

        display:
            inline-flex;

        margin-bottom:
            38px;

    }


    .form-header {

        margin-bottom:
            25px;

    }


    .form-header h2 {

        font-size:
            28px;

    }


    .form-header p {

        font-size:
            13px;

    }


    .form-row {

        grid-template-columns:
            1fr;

        gap:
            0;

    }


    .form-group {

        margin-bottom:
            17px;

    }


    .password-rules {

        gap:
            7px 10px;

    }


    .register-submit {

        min-height:
            54px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (
    max-width: 380px
) {

    .registration-form-panel {

        padding:
            25px 16px 30px;

    }


    .form-header h2 {

        font-size:
            25px;

    }


    .form-badge {

        font-size:
            9px;

    }


    .terms-text {

        font-size:
            10px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    * {

        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation:
            none !important;

    }

}