﻿/* =====================================================
   MatchRadar
   Security Module
===================================================== */


/* =====================================================
   Reset
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =====================================================
   Body
===================================================== */

html,
body {
    width: 100%;
    height: 100%;
}


    body.security-body {
        direction: rtl;
        overflow-x: hidden;
        overflow-y: auto;
        font-family: "Segoe UI", Tahoma, sans-serif;
        background: #08170f;
        color: #ffffff;
    }
/* =====================================================
   Matrix Background
===================================================== */

.security-matrix-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.security-background-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient( circle at center, rgba(11, 36, 24, .20), rgba(2, 8, 5, .90) );
    z-index: 2;
}
/* =====================================================
   Security Page
===================================================== */

.security-page {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
/* =====================================================
   Shell
===================================================== */

.security-shell {
    width: 100%;
    max-width: 1180px;
    min-height: 700px;
    display: grid;
    grid-template-columns: 1fr 520px;
    overflow: hidden;
    border-radius: 28px;
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(5,18,12,.72);
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
/* =====================================================
   Brand Panel
===================================================== */

.security-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 45px;
    background: linear-gradient( 145deg, rgba(10, 52, 34, 0.82), rgba(4, 20, 13, 0.92) );
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.security-brand-content {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


/* =====================================================
   Brand Logo
===================================================== */

.security-brand-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}
/* =====================================================
   Brand Identity
===================================================== */

.security-brand-name {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
}

.security-brand-match {
    color: #f7941d;
}

.security-brand-radar {
    color: #b7f34a;
}

.security-brand-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 14px;
    color: #dfffa2;
    font-size: 17px;
    font-weight: 800;
}

    .security-brand-slogan i {
        display: block;
        width: 5px;
        height: 5px;
        background: #f7941d;
        border-radius: 50%;
    }

.security-brand-description {
    max-width: 330px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.9;
}
/* =====================================================
   Form Panel
===================================================== */

.security-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 55px 60px;
    background: linear-gradient( 145deg, rgba(2, 14, 9, 0.96), rgba(4, 24, 16, 0.90) );
}


/* =====================================================
   Form Content
===================================================== */

.security-form-content {
    width: 100%;
    max-width: 420px;
    direction: rtl;
}


/* =====================================================
   Form Header
===================================================== */

.security-form-header {
    margin-bottom: 32px;
    text-align: right;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.security-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 6px 13px;
    color: #b7f34a;
    background: rgba(183, 243, 74, 0.10);
    border: 1px solid rgba(183, 243, 74, 0.28);
    border-radius: 18px;
    font-size: 12px;
    font-weight: 800;
    rex
}

    .security-form-badge h3 {
        margin: 0 0 9px;
        color: #ffffff;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.4;
    }

/* =====================================================
   Form Groups
===================================================== */

.security-form-group {
    margin-bottom: 22px;
}

.security-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}


/* =====================================================
   Inputs
===================================================== */

.security-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.security-input {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 48px;
    direction: rtl;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .security-input::placeholder {
        color: rgba(255, 255, 255, 0.38);
    }

    .security-input:hover {
        border-color: rgba(183, 243, 74, 0.40);
    }

    .security-input:focus {
        background: rgba(255, 255, 255, 0.07);
        border-color: #b7f34a;
        box-shadow: 0 0 0 3px rgba(183, 243, 74, 0.12), 0 0 20px rgba(183, 243, 74, 0.08);
    }


/* =====================================================
   Input Icons
===================================================== */

.security-input-icon {
    position: absolute;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    pointer-events: none;
    font-size: 16px;
}


/* =====================================================
   Password Toggle
===================================================== */

.security-password-toggle {
    position: absolute;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #b7f34a;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .security-password-toggle:hover {
        background: rgba(183, 243, 74, 0.10);
        transform: scale(1.05);
    }


/* =====================================================
   Form Options
===================================================== */

.security-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 4px;
    margin-bottom: 24px;
}

.security-remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    cursor: pointer;
}

    .security-remember-option input {
        accent-color: #b7f34a;
    }

.security-forgot-link {
    color: #b7f34a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .security-forgot-link:hover {
        color: #f7941d;
    }


/* =====================================================
   Submit Button
===================================================== */

.security-submit-button {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    color: #07110b;
    background: linear-gradient( 90deg, #b7f34a 0%, #f7bf2f 52%, #f7941d 100% );
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(247, 148, 29, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .security-submit-button:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 14px 30px rgba(247, 148, 29, 0.28);
    }

    .security-submit-button:active {
        transform: translateY(0);
    }


/* =====================================================
   Register
===================================================== */

.security-register-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.security-register-link {
    color: #b7f34a;
    font-weight: 800;
    text-decoration: none;
}

    .security-register-link:hover {
        color: #f7941d;
    }


/* =====================================================
   Security Note
===================================================== */

.security-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

    .security-form-note p {
        margin: 0;
    }


/* =====================================================
   Message
===================================================== */

.security-message {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.34);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
}
/* =====================================================
   Register Form
===================================================== */

.security-register-form {
    width: 100%;
    max-width: 430px;
}


/* =====================================================
   Register Grid
===================================================== */

.security-register-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

    .security-register-grid .security-form-group {
        min-width: 0;
    }


/* =====================================================
   Compact Inputs
===================================================== */

.security-register-form .security-form-group {
    margin-bottom: 16px;
}

.security-register-form .security-input {
    min-height: 46px;
    padding-right: 44px;
    padding-left: 44px;
    font-size: 13px;
}

.security-register-form .security-input-icon {
    right: 14px;
    font-size: 15px;
}

.security-register-form .security-password-toggle {
    left: 10px;
    width: 32px;
    height: 32px;
}


/* =====================================================
   Password Help
===================================================== */

.security-password-help {
    margin-top: -4px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    line-height: 1.8;
}


/* =====================================================
   Terms
===================================================== */

.security-terms-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.8;
    cursor: pointer;
}

    .security-terms-option input {
        margin-top: 4px;
        accent-color: #b7f34a;
    }


/* =====================================================
   Login Compact Form
===================================================== */

.security-form-content:not(.security-register-form) {
    max-width: 390px;
}

    .security-form-content:not(.security-register-form) .security-form-group {
        margin-bottom: 16px;
    }

    .security-form-content:not(.security-register-form) .security-input {
        min-height: 46px;
        padding-right: 44px;
        padding-left: 44px;
        font-size: 13px;
    }

    .security-form-content:not(.security-register-form) .security-input-icon {
        right: 14px;
        font-size: 15px;
    }

    .security-form-content:not(.security-register-form) .security-password-toggle {
        left: 10px;
        width: 32px;
        height: 32px;
    }

/* =====================================================
   Register Page Layout
===================================================== */

body.security-register-page .security-page {
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 3px;
    padding-bottom: 24px;
}

body.security-register-page .security-shell {
    min-height: auto;
}

body.security-register-page .security-form-panel {
    align-items: flex-start;
    padding-top: 3px;
    padding-bottom: 24px;
}

body.security-register-page .security-register-form {
    margin-top: 0;
}
/* =====================================================
   Register Header
===================================================== */

.security-register-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

    .security-register-header .security-form-badge {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
/* =====================================================
   Forgot Password
===================================================== */

.security-forgot-form {
    width: 100%;
    max-width: 410px;
}

.security-forgot-header {
    text-align: center;
}

    .security-forgot-header h1 {
        font-size: 26px;
    }

    .security-forgot-header p {
        max-width: 360px;
        margin: 0 auto;
        line-height: 1.9;
    }
/* =====================================================
   Verify Email
===================================================== */

.security-verify-form {
    width: 100%;
    max-width: 410px;
}

.security-verify-header {
    text-align: center;
}

    .security-verify-header h1 {
        margin-top: 12px;
        font-size: 26px;
    }

    .security-verify-header p {
        max-width: 360px;
        margin: 0 auto;
        line-height: 1.9;
    }

.security-verify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 10px auto 0;
    color: #b7f34a;
    background: rgba(183, 243, 74, 0.10);
    border: 1px solid rgba(183, 243, 74, 0.28);
    border-radius: 50%;
    font-size: 30px;
}

.security-verify-email-box {
    margin-bottom: 22px;
    padding: 15px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.security-verify-email-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 11px;
}

.security-verify-email-value {
    display: block;
    color: #b7f34a;
    font-size: 14px;
    font-weight: 800;
    direction: ltr;
}
/* =====================================================
   Reset Password
===================================================== */

.security-reset-form {
    width: 100%;
    max-width: 410px;
}

.security-reset-header {
    text-align: center;
}

    .security-reset-header h1 {
        font-size: 26px;
    }

    .security-reset-header p {
        max-width: 350px;
        margin: 0 auto;
        line-height: 1.9;
    }

/* =====================================================
   Radar Icon
===================================================== */

.security-brand-radar-icon {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    margin: 0 10px;
    font-size: 18px;
    z-index: 1;
}


    /* =====================================================
   Radar Scan
===================================================== */

    .security-brand-radar-icon::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid rgba(183,243,74,.55);
        animation: radarScan 2.2s infinite ease-out;
        z-index: -1;
    }

    .security-brand-radar-icon::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid rgba(247,148,29,.35);
        animation: radarScan 2.2s infinite ease-out;
        animation-delay: 1.1s;
        z-index: -1;
    }
/* =========================================
   MatchRadar - Terms Page
========================================= */

.terms-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fa;
    direction: rtl;
}


.terms-page {
    width: 100%;
    min-height: 100vh;
    padding: 32px 20px 48px;
    box-sizing: border-box;
}


.terms-container {
    width: min(100%, 1400px);
    margin: 0 auto;
}


/* =========================================
   Header
========================================= */

.terms-header {
    margin-bottom: 28px;
    padding: 34px 36px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}


.terms-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #667085;
}


.terms-header h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.4;
    color: #172033;
}


.terms-header p {
    margin: 0;
    max-width: 850px;
    font-size: 15px;
    line-height: 2;
    color: #667085;
}


/* =========================================
   Main Content
========================================= */

.terms-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================
   Sections
========================================= */

.terms-section {
    position: relative;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.045);
    box-sizing: border-box;
}


    .terms-section h2 {
        margin: 0 0 18px;
        padding-bottom: 12px;
        font-size: 19px;
        line-height: 1.7;
        color: #172033;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }


    .terms-section p {
        margin: 0 0 16px;
        font-size: 14px;
        line-height: 2;
        color: #475467;
    }


    .terms-section ul {
        margin: 0;
        padding: 0 21px 0 0;
    }


    .terms-section li {
        margin-bottom: 11px;
        padding-right: 4px;
        font-size: 14px;
        line-height: 2;
        color: #344054;
    }


        .terms-section li:last-child {
            margin-bottom: 0;
        }


/* =========================================
   Important Sections
========================================= */

.terms-section-danger {
    border-right: 4px solid #d92d20;
}


    .terms-section-danger h2 {
        color: #b42318;
    }


.terms-acceptance {
    grid-column: 1 / -1;
    border-right: 4px solid #12b76a;
}


    .terms-acceptance h2 {
        color: #087a4b;
    }


    .terms-acceptance p {
        margin-bottom: 0;
        font-weight: 600;
    }


/* =========================================
   Actions
========================================= */

.terms-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}


.terms-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: #172033;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}


    .terms-back-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    }


    .terms-back-button:active {
        transform: translateY(0);
    }


/* =========================================
   Tablet
========================================= */

@media (max-width: 900px) {

    .terms-page {
        padding: 20px 16px 36px;
    }


    .terms-content {
        grid-template-columns: 1fr;
    }


    .terms-header {
        padding: 26px 24px;
    }


    .terms-section {
        padding: 24px;
    }


    .terms-acceptance {
        grid-column: auto;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .terms-page {
        padding: 12px 10px 28px;
    }


    .terms-header {
        margin-bottom: 14px;
        padding: 22px 18px;
        border-radius: 14px;
    }


        .terms-header h1 {
            font-size: 24px;
        }


        .terms-header p {
            font-size: 13px;
            line-height: 1.9;
        }


    .terms-content {
        gap: 12px;
    }


    .terms-section {
        padding: 20px 17px;
        border-radius: 13px;
    }


        .terms-section h2 {
            margin-bottom: 14px;
            font-size: 17px;
        }


        .terms-section p,
        .terms-section li {
            font-size: 13px;
            line-height: 1.95;
        }


    .terms-actions {
        margin-top: 20px;
    }


    .terms-back-button {
        width: 100%;
        min-width: 0;
    }
}

/* =====================================================
   Radar Animation
===================================================== */

@keyframes radarScan {

    0% {
        transform: scale(.6);
        opacity: .9;
    }

    70% {
        opacity: .25;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}


/* =====================================================
   Responsive - Tablet
===================================================== */

@media (max-width: 900px) {

    body.security-body {
        overflow-y: auto;
    }

    .security-page {
        padding: 20px;
    }

    .security-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .security-brand-panel {
        display: none;
    }

    .security-form-panel {
        padding: 32px 24px;
    }
}


/* =====================================================
   Responsive - Mobile
===================================================== */

@media (max-width: 520px) {

    /* -----------------------------
       General Layout
    ------------------------------*/

    .security-page {
        align-items: flex-start;
        padding: 12px;
    }

    .security-shell {
        border-radius: 20px;
    }

    .security-form-panel {
        padding: 26px 18px;
    }

    .security-form-header {
        margin-bottom: 24px;
        text-align: center;
    }

        .security-form-header h1 {
            font-size: 24px;
        }


    /* -----------------------------
       Login Options
    ------------------------------*/

    .security-form-options {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .security-remember-option {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
    }

        .security-remember-option input {
            transform: scale(.9);
        }

    .security-forgot-link {
        font-size: 11px;
        white-space: nowrap;
    }


    /* -----------------------------
       Register
    ------------------------------*/

    .security-register-form {
        max-width: 100%;
    }

        .security-register-form .security-form-header h1 {
            font-size: 23px;
        }

    .security-password-help {
        font-size: 10px;
    }

    .security-terms-option {
        font-size: 11px;
    }


    /* -----------------------------
       Forgot Password
    ------------------------------*/

    .security-forgot-header h1 {
        font-size: 22px;
    }

    .security-forgot-header p {
        font-size: 12px;
    }


    /* -----------------------------
       Verify Email
    ------------------------------*/

    .security-verify-header h1 {
        font-size: 22px;
    }

    .security-verify-header p {
        font-size: 12px;
    }

    .security-verify-icon {
        width: 58px;
        height: 58px;
        font-size: 26px;
    }


    /* -----------------------------
       Reset Password
    ------------------------------*/

    .security-reset-header h1 {
        font-size: 22px;
    }

    .security-reset-header p {
        font-size: 12px;
    }


    /* -----------------------------
       Footer
    ------------------------------*/

    .security-register-box {
        font-size: 12px;
    }

    .security-form-note {
        font-size: 11px;
        text-align: center;
    }
}