﻿/* =========================================================
   TechLawyer Register
   ========================================================= */

.tl-register-layout {
    width: min(1180px, 100%);
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(510px, 1.05fr) minmax(500px, 0.95fr);
    overflow: hidden;
    margin: 0 auto;
    border-radius: 30px;
    border: 1px solid rgba(15, 39, 71, 0.08);
    background: #ffffff;
    box-shadow: 0 28px 85px rgba(15, 39, 71, 0.12);
}


/* =========================================================
   Brand panel
   ========================================================= */

.tl-register-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 46px 50px;
    color: #ffffff;
    background: linear-gradient( 145deg, #0c2949 0%, #123c69 52%, #0a2441 100% );
}

    .tl-register-brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.10;
        background-image: radial-gradient( circle at 1px 1px, #ffffff 1px, transparent 0 );
        background-size: 24px 24px;
    }

.tl-register-brand-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tl-register-brand-shape-one {
    width: 370px;
    height: 370px;
    top: -190px;
    left: -120px;
    background: rgba(231, 199, 120, 0.09);
}

.tl-register-brand-shape-two {
    width: 250px;
    height: 250px;
    right: -100px;
    bottom: -100px;
    background: rgba(31, 92, 148, 0.18);
}

.tl-register-brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tl-register-brand-logo {
    width: 178px;
    margin-bottom: 30px;
}

    .tl-register-brand-logo img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

.tl-register-brand-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(231, 199, 120, 0.28);
    border-radius: 999px;
    background: rgba(231, 199, 120, 0.07);
    color: #e7c778;
    font-size: 10px;
    font-weight: 800;
}

.tl-register-brand-heading {
    margin-top: 28px;
}

.tl-register-brand-eyebrow {
    display: block;
    color: #e7c778;
    font-size: 12px;
    font-weight: 800;
}

.tl-register-brand-heading h1 {
    margin: 7px 0 9px;
    font-size: 31px;
    font-weight: 900;
    line-height: 1.45;
}

.tl-register-brand-heading p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    line-height: 1.95;
}


/* =========================================================
   Benefits
   ========================================================= */

.tl-register-benefits {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 11px;
    margin-top: 30px;
}

.tl-register-benefit {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.tl-register-benefit-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #e7c778;
    background: rgba(231, 199, 120, 0.09);
}

.tl-register-benefit strong {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
}

.tl-register-benefit span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    line-height: 1.65;
}

.tl-register-brand-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 23px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
}

    .tl-register-brand-footer i {
        color: #e7c778;
    }


/* =========================================================
   Form panel
   ========================================================= */

.tl-register-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 50px;
    background: #ffffff;
}

.tl-register-form-wrapper {
    width: 100%;
    max-width: 490px;
}

.tl-register-mobile-brand {
    display: none;
}

.tl-register-form-header {
    margin-bottom: 22px;
}

.tl-register-welcome {
    display: block;
    margin-bottom: 3px;
    color: #b78c39;
    font-size: 10px;
    font-weight: 800;
}

.tl-register-form-header h2 {
    margin: 0 0 5px;
    color: #10233f;
    font-size: 27px;
    font-weight: 900;
}

.tl-register-form-header p {
    margin: 0;
    color: #778497;
    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   Fields
   ========================================================= */

.tl-register-field label {
    display: block;
    margin-bottom: 6px;
    color: #10233f;
    font-size: 10px;
    font-weight: 700;
}

.tl-required {
    color: #b42318;
}

.tl-optional {
    margin-inline-start: 5px;
    color: #8b97a7;
    font-size: 8px;
    font-weight: 500;
}

.tl-register-input-wrapper {
    position: relative;
}

.tl-register-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    z-index: 2;
    color: #8793a4;
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.tl-register-input {
    min-height: 47px;
    padding-inline-start: 41px;
    padding-inline-end: 14px;
    border: 1px solid #dce3eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #10233f;
    font-size: 11px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tl-register-password {
    padding-inline-end: 46px;
}

.tl-register-input:focus {
    border-color: rgba(183, 140, 57, 0.70);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(183, 140, 57, 0.08);
}

.tl-register-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #8793a4;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

    .tl-register-password-toggle:hover {
        color: #b78c39;
        background: rgba(183, 140, 57, 0.07);
    }


/* =========================================================
   Password policy
   ========================================================= */

.tl-password-policy {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #f8fafc;
}

.tl-password-policy-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #10233f;
    font-size: 9px;
    font-weight: 800;
}

    .tl-password-policy-title i {
        color: #b78c39;
    }

.tl-password-policy-items {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 5px 10px;
}

.tl-password-rule {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8692a2;
    font-size: 8px;
}

    .tl-password-rule.is-valid {
        color: #15803d;
    }

        .tl-password-rule.is-valid i::before {
            content: "\f058";
        }


/* =========================================================
   Terms
   ========================================================= */

.tl-register-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    color: #778497;
    font-size: 9px;
    line-height: 1.7;
}

    .tl-register-terms input {
        margin-top: 3px;
    }

    .tl-register-terms a {
        color: #b78c39;
        text-decoration: none;
        font-weight: 700;
    }

        .tl-register-terms a:hover {
            text-decoration: underline;
        }


/* =========================================================
   Button
   ========================================================= */

.tl-register-submit {
    width: 100%;
    min-height: 49px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient( 135deg, #0f2d51, #153d6d );
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 45, 81, 0.15);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

    .tl-register-submit:hover {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 14px 29px rgba(15, 45, 81, 0.20);
    }


/* =========================================================
   Login
   ========================================================= */

.tl-register-login {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 17px;
    color: #7d8999;
    font-size: 9px;
}

    .tl-register-login a {
        color: #b78c39;
        text-decoration: none;
        font-weight: 800;
    }

        .tl-register-login a:hover {
            text-decoration: underline;
        }

.tl-register-security-note {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #e6ebf0;
    color: #8995a4;
    font-size: 8px;
    line-height: 1.6;
    text-align: center;
}

    .tl-register-security-note i {
        color: #b78c39;
    }

.tl-register-alert {
    margin-bottom: 17px;
    border-radius: 11px;
    font-size: 10px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1050px) {

    .tl-register-layout {
        grid-template-columns: 1fr;
        width: min(620px, 100%);
    }

    .tl-register-brand-panel {
        display: none;
    }

    .tl-register-form-panel {
        padding: 42px 38px;
    }

    .tl-register-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 27px;
    }

    .tl-register-mobile-logo {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        color: #b78c39;
        background: #102f55;
    }

    .tl-register-mobile-brand strong {
        display: block;
        color: #10233f;
        font-size: 13px;
    }

    .tl-register-mobile-brand span {
        display: block;
        color: #8995a4;
        font-size: 8px;
    }
}

@media (max-width: 600px) {

    .tl-register-layout {
        border-radius: 20px;
    }

    .tl-register-form-panel {
        padding: 29px 20px;
    }

    .tl-register-form-header h2 {
        font-size: 23px;
    }

    .tl-password-policy-items {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Policy Links
   ========================================================= */

.tl-register-policy-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b78c39;
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

    .tl-register-policy-link:hover {
        color: #8f6b28;
        text-decoration: underline;
    }


/* =========================================================
   Policy Modal
   ========================================================= */

.tl-policy-modal {
    direction: rtl;
}

    .tl-policy-modal .modal-dialog {
        max-width: 820px;
    }

    .tl-policy-modal .modal-content {
        overflow: hidden;
        border: 0;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 30px 100px rgba(8, 31, 57, 0.22);
    }

.tl-policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid #e8edf2;
    background: #ffffff;
}

.tl-policy-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-policy-modal-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    border-radius: 13px;
    background: #102f55;
    color: #d5ad58;
    font-size: 16px;
}

.tl-policy-modal-title span {
    display: block;
    margin-bottom: 2px;
    color: #b78c39;
    font-size: 9px;
    font-weight: 800;
}

.tl-policy-modal-title h2 {
    margin: 0;
    color: #10233f;
    font-size: 19px;
    font-weight: 900;
}

.tl-policy-modal-close {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
    background: #f8fafc;
    color: #687689;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .tl-policy-modal-close:hover {
        border-color: #d4a84d;
        background: rgba(183, 140, 57, 0.08);
        color: #b78c39;
    }

.tl-policy-modal-body {
    padding: 25px 28px;
    color: #536174;
}

.tl-policy-intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 17px;
    border: 1px solid rgba(183, 140, 57, 0.18);
    border-radius: 13px;
    background: rgba(183, 140, 57, 0.055);
}

    .tl-policy-intro > i {
        margin-top: 4px;
        color: #b78c39;
    }

    .tl-policy-intro p {
        margin: 0;
        color: #5c6573;
        font-size: 11px;
        line-height: 1.95;
    }

.tl-policy-section {
    padding: 5px 0 20px;
    margin-bottom: 17px;
    border-bottom: 1px solid #edf0f4;
}

    .tl-policy-section:last-of-type {
        border-bottom: 0;
    }

    .tl-policy-section h3 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0 0 10px;
        color: #10233f;
        font-size: 13px;
        font-weight: 900;
    }

        .tl-policy-section h3 > span {
            width: 25px;
            height: 25px;
            display: grid;
            place-items: center;
            flex: 0 0 25px;
            border-radius: 8px;
            background: #eef3f8;
            color: #b78c39;
            font-size: 9px;
        }

    .tl-policy-section p {
        margin: 0 0 8px;
        color: #667386;
        font-size: 10px;
        line-height: 2;
    }

        .tl-policy-section p:last-child {
            margin-bottom: 0;
        }

.tl-policy-warning,
.tl-policy-security-box,
.tl-policy-final-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 12px;
}

.tl-policy-warning {
    border: 1px solid #f2dfb2;
    background: #fffaf0;
}

    .tl-policy-warning > i {
        margin-top: 3px;
        color: #b7791f;
    }

    .tl-policy-warning p {
        margin: 0;
        color: #745b27;
    }

.tl-policy-security-box {
    border: 1px solid #dce7f2;
    background: #f5f9fd;
}

    .tl-policy-security-box > i {
        margin-top: 3px;
        color: #174d7e;
    }

    .tl-policy-security-box strong,
    .tl-policy-final-note strong {
        display: block;
        margin-bottom: 3px;
        color: #10233f;
        font-size: 10px;
    }

    .tl-policy-security-box p,
    .tl-policy-final-note p {
        margin: 0;
    }

.tl-policy-final-note {
    margin-top: 15px;
    border: 1px solid rgba(21, 128, 61, 0.15);
    background: rgba(21, 128, 61, 0.045);
}

    .tl-policy-final-note > i {
        margin-top: 3px;
        color: #15803d;
    }

.tl-policy-modal-footer {
    padding: 15px 24px;
    border-top: 1px solid #e8edf2;
    background: #fafbfd;
}

.tl-policy-accept-button {
    min-width: 180px;
    min-height: 41px;
    border: 0;
    border-radius: 10px;
    background: #102f55;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

    .tl-policy-accept-button:hover {
        background: #173e6c;
        color: #ffffff;
    }


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .tl-policy-modal .modal-dialog {
        margin: 10px;
    }

    .tl-policy-modal .modal-content {
        border-radius: 17px;
    }

    .tl-policy-modal-header {
        padding: 16px;
    }

    .tl-policy-modal-body {
        padding: 19px 17px;
    }

    .tl-policy-modal-title h2 {
        font-size: 16px;
    }

    .tl-policy-modal-footer {
        padding: 13px 16px;
    }

    .tl-policy-accept-button {
        width: 100%;
    }
}