﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f5f7fb;
}

.login-page {
    min-height: 100vh;
    display: flex;
}


/* =========================================
   BRAND SECTION
========================================= */

.login-brand-section {
    width: 48%;
    min-height: 100vh;
    background: linear-gradient( 145deg, #243b53 0%, #1f4d6b 50%, #163b52 100% );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 70px 8%;
    position: relative;
    overflow: hidden;
}

    .login-brand-section::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        top: -180px;
        right: -140px;
    }

    .login-brand-section::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.035);
        bottom: -150px;
        left: -100px;
    }


.brand-content {
    position: relative;
    z-index: 2;
}


/* =========================================
   LOGO
========================================= */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 25px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.65;
    letter-spacing: 1px;
}


/* =========================================
   BRAND DESCRIPTION
========================================= */

.brand-description {
    margin-top: 100px;
    max-width: 520px;
}

    .brand-description h1 {
        font-size: clamp(38px, 4vw, 58px);
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 22px;
    }

    .brand-description p {
        font-size: 17px;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.72);
        margin: 0;
    }


/* =========================================
   FEATURES
========================================= */

.feature-list {
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.feature-item small {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}


/* =========================================
   BRAND FOOTER
========================================= */

.brand-footer {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}


/* =========================================
   FORM SECTION
========================================= */

.login-form-section {
    width: 52%;
    min-height: 100vh;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-container {
    width: 100%;
    max-width: 470px;
}


/* =========================================
   MOBILE LOGO
========================================= */

.mobile-logo {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 45px;
}

    .mobile-logo .logo-icon {
        background: #243b53;
        color: #fff;
    }

    .mobile-logo .logo-title {
        color: #243b53;
    }

    .mobile-logo .logo-subtitle {
        color: #7b8794;
    }


/* =========================================
   LOGIN HEADER
========================================= */

.login-header {
    margin-bottom: 38px;
}

.login-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9eef4;
    color: #243b53;
    font-size: 26px;
    margin-bottom: 20px;
}

.login-header h2 {
    margin: 0 0 8px;
    color: #172b4d;
    font-size: 32px;
    font-weight: 800;
}

.login-header p {
    margin: 0;
    color: #8492a6;
    font-size: 14px;
}


/* =========================================
   INPUT
========================================= */

.input-group-custom {
    margin-bottom: 22px;
}

    .input-group-custom > label {
        display: block;
        color: #344563;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
    }

        .input-group-custom > label i {
            margin-right: 5px;
        }

[dir="rtl"] .input-group-custom > label i {
    margin-right: 0;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

    .input-wrapper .form-control {
        height: 54px;
        border-radius: 11px;
        border: 1px solid #dfe4ea;
        background: #fff;
        padding-left: 46px;
        padding-right: 16px;
        font-size: 14px;
        color: #172b4d;
        box-shadow: none;
        transition: all 0.2s ease;
    }

[dir="rtl"] .input-wrapper .form-control {
    padding-right: 46px;
    padding-left: 45px;
}

.input-wrapper .form-control:focus {
    border-color: #243b53;
    box-shadow: 0 0 0 3px rgba(36, 59, 83, 0.08);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #9aa6b2;
    font-size: 17px;
    z-index: 2;
    pointer-events: none;
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 17px;
}


/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9aa6b2;
    padding: 5px;
    cursor: pointer;
    z-index: 3;
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 15px;
}

.password-toggle:hover {
    color: #243b53;
}


/* =========================================
   VALIDATION
========================================= */

.validation-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
}

.validation-summary {
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 22px;
}

    .validation-summary:empty {
        display: none;
    }


/* =========================================
   OPTIONS
========================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0 28px;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .remember-wrapper .form-check-input {
        margin: 0;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .remember-wrapper label {
        color: #697586;
        font-size: 13px;
        cursor: pointer;
    }

.forgot-link {
    color: #243b53;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }


/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 11px;
    background: #243b53;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .login-btn:hover {
        background: #1b3045;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(36, 59, 83, 0.18);
    }

    .login-btn i {
        font-size: 17px;
        transition: transform 0.2s ease;
    }

    .login-btn:hover i {
        transform: translateX(4px);
    }

[dir="rtl"] .login-btn:hover i {
    transform: translateX(-4px);
}


/* =========================================
   FOOTER
========================================= */

.login-footer {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #98a3b3;
    font-size: 11px;
}

    .security-info i {
        font-size: 15px;
    }


/* =========================================
   RTL
========================================= */

[dir="rtl"] .login-options {
    direction: rtl;
}

[dir="rtl"] .brand-logo,
[dir="rtl"] .mobile-logo {
    direction: rtl;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .login-brand-section {
        width: 42%;
        padding: 50px 5%;
    }

    .login-form-section {
        width: 58%;
        padding: 30px;
    }

    .brand-description {
        margin-top: 70px;
    }

        .brand-description h1 {
            font-size: 40px;
        }

    .feature-list {
        margin-top: 40px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .login-page {
        display: block;
    }

    .login-brand-section {
        display: none;
    }

    .login-form-section {
        width: 100%;
        min-height: 100vh;
        padding: 30px 20px;
        align-items: flex-start;
    }

    .login-container {
        max-width: 520px;
        margin: 0 auto;
    }

    .mobile-logo {
        display: flex;
    }

    .login-header {
        margin-bottom: 30px;
    }

        .login-header h2 {
            font-size: 28px;
        }

    .login-icon {
        width: 52px;
        height: 52px;
        font-size: 23px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .login-form-section {
        padding: 25px 16px;
    }

    .mobile-logo {
        margin-bottom: 35px;
    }

    .login-header h2 {
        font-size: 25px;
    }

    .input-wrapper .form-control {
        height: 51px;
    }

    .login-btn {
        height: 51px;
    }

    .login-options {
        font-size: 12px;
    }
}
