﻿/* =========================================================
   CRM LOGIN PAGE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #24352c;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    background: #ffffff;
    overflow: hidden;
}


/* =========================================================
   LEFT BRANDING
   ========================================================= */

.login-brand {
    width: 52%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 60px 30px;
    background: radial-gradient( circle at 15% 15%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 32% ), linear-gradient( 145deg, #effaf3 0%, #e5f6ec 48%, #d9f0e3 100% );
    overflow: hidden;
}


    .login-brand::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        right: -170px;
        top: -120px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.35);
    }


    .login-brand::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        left: -140px;
        bottom: -120px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
    }


/* =========================================================
   BRAND HEADER
   ========================================================= */

.brand-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}


.brand-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #32835d;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(50, 131, 93, 0.22);
}


    .brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 13px;
    }


.brand-header h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #173b2a;
}


.brand-header p {
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #638071;
    letter-spacing: 0.2px;
}


/* =========================================================
   BRAND MESSAGE
   ========================================================= */

.brand-message {
    position: relative;
    z-index: 5;
    max-width: 570px;
    margin-top: 58px;
}


    .brand-message h2 {
        margin: 0;
        font-size: clamp(38px, 4vw, 60px);
        line-height: 1.08;
        font-weight: 800;
        letter-spacing: -2.4px;
        color: #173b2a;
    }


    .brand-message p {
        max-width: 500px;
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.75;
        color: #5e7568;
    }


/* =========================================================
   CRM ILLUSTRATION
   ========================================================= */

.crm-illustration {
    position: relative;
    z-index: 4;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 330px;
    margin-top: 5px;
    overflow: hidden;
}


.crm-illustration-image {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}


/* =========================================================
   BRAND FOOTER
   ========================================================= */

.brand-footer {
    position: relative;
    z-index: 5;
    margin-top: auto;
    padding-top: 15px;
    font-size: 11px;
    color: #789287;
}


/* =========================================================
   RIGHT LOGIN SECTION
   ========================================================= */

.login-form-section {
    width: 48%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 70px;
    background: #ffffff;
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-container {
    width: 100%;
    max-width: 440px;
}


/* =========================================================
   HELP
   ========================================================= */

.login-help {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #82918a;
}


.contact-support-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #24885f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .contact-support-link:hover {
        color: #176b49;
    }


    .contact-support-link i {
        font-size: 12px;
    }


/* =========================================================
   MOBILE BRAND
   ========================================================= */

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}


    .mobile-brand .brand-logo {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }


    .mobile-brand h1 {
        margin: 0;
        font-size: 20px;
        font-weight: 800;
        color: #173b2a;
    }


    .mobile-brand p {
        margin: 4px 0 0;
        font-size: 11px;
        color: #718078;
    }


/* =========================================================
   WELCOME ICON
   ========================================================= */

.login-welcome-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 23px;
    border-radius: 19px;
    background: #e7f6ed;
    color: #32835d;
}


    .login-welcome-icon i {
        font-size: 33px;
    }


/* =========================================================
   LOGIN TITLE
   ========================================================= */

.login-container h2.login-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #1d2f26;
}


.login-subtitle {
    margin-top: 9px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    color: #78857f;
}


/* =========================================================
   FORM
   ========================================================= */

.login-form .form-group {
    margin-bottom: 20px;
}


.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 650;
    color: #35463e;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.input-wrapper {
    position: relative;
    width: 100%;
}


    .input-wrapper > .input-icon {
        position: absolute;
        left: 17px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 17px;
        color: #8a9791;
        pointer-events: none;
        z-index: 2;
    }


/* =========================================================
   INPUT
   ========================================================= */

.login-input {
    width: 100%;
    height: 54px;
    padding: 0 17px 0 48px;
    border: 1px solid #dfe7e2;
    border-radius: 13px;
    outline: none;
    background: #ffffff;
    color: #26372e;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


    .login-input::placeholder {
        color: #a3ada8;
    }


    .login-input:hover {
        border-color: #c9d8cf;
    }


    .login-input:focus {
        border-color: #32835d;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(50, 131, 93, 0.09);
    }


/* =========================================================
   PASSWORD
   ========================================================= */

.password-wrapper .login-input {
    padding-right: 50px;
}


.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #8a9791;
    cursor: pointer;
    font-size: 17px;
    transition: color 0.2s ease;
}


    .password-toggle:hover {
        color: #32835d;
    }


/* =========================================================
   FORM OPTIONS
   ========================================================= */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 24px;
}


.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #66746d;
    user-select: none;
}


    .remember-me input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #32835d;
        cursor: pointer;
    }


    .remember-me span {
        line-height: 1;
    }


.forgot-password {
    font-size: 13px;
    font-weight: 600;
    color: #32835d;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .forgot-password:hover {
        color: #246b49;
        text-decoration: underline;
    }


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #fff1f1;
    border: 1px solid #f4d0d0;
    color: #b33a3a;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.login-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #eefaf1;
    border: 1px solid #cdeeda;
    color: #217a4a;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

.sign-in-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 13px;
    background: #32835d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(50, 131, 93, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}


    .sign-in-btn:hover {
        background: #286f4e;
        transform: translateY(-1px);
        box-shadow: 0 12px 25px rgba(50, 131, 93, 0.24);
    }


    .sign-in-btn:active {
        transform: translateY(0);
        box-shadow: 0 6px 15px rgba(50, 131, 93, 0.16);
    }


    .sign-in-btn i {
        font-size: 16px;
    }


/* =========================================================
   OR DIVIDER
   ========================================================= */

.registration-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 27px 0 20px;
    color: #9aa49f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


    .registration-divider span {
        flex: 1;
        height: 1px;
        background: #e6ece8;
    }


    .registration-divider strong {
        font-size: 10px;
        font-weight: 700;
    }


/* =========================================================
   COMPANY REGISTRATION CARD
   ========================================================= */

.company-registration-cta {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    border: 1px solid #cfe8da;
    border-radius: 16px;
    background: #f1faf5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .company-registration-cta:hover {
        border-color: #b9ddca;
        box-shadow: 0 6px 20px rgba(47, 147, 104, 0.07);
    }


/* =========================================================
   COMPANY ICON
   ========================================================= */

.company-registration-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dff3e7;
    color: #23885f;
}


    .company-registration-icon i {
        font-size: 24px;
    }


/* =========================================================
   REGISTRATION CONTENT
   ========================================================= */

.company-registration-content {
    flex: 1;
    min-width: 0;
}


    .company-registration-content h3 {
        margin: 1px 0 5px;
        color: #173126;
        font-size: 17px;
        font-weight: 700;
    }


    .company-registration-content p {
        margin: 0 0 13px;
        color: #65776f;
        font-size: 13px;
        line-height: 1.45;
    }


/* =========================================================
   REGISTER COMPANY BUTTON
   ========================================================= */

.company-registration-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #2f9368;
    border-radius: 10px;
    background: #ffffff;
    color: #23885f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


    .company-registration-link:hover {
        background: #2f9368;
        color: #ffffff;
        transform: translateY(-1px);
    }


    .company-registration-link i {
        font-size: 14px;
    }


/* =========================================================
   SECURITY
   ========================================================= */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    font-size: 11px;
    color: #9aa49f;
}


    .login-security i {
        font-size: 13px;
        color: #6a9d81;
    }


/* =========================================================
   AUTOFILL
   ========================================================= */

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #26372e;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .login-brand {
        width: 50%;
        padding: 40px 42px 28px;
    }


    .login-form-section {
        width: 50%;
        padding: 40px 45px;
    }


    .brand-message {
        margin-top: 45px;
    }


        .brand-message h2 {
            font-size: 44px;
        }


    .crm-illustration-image {
        max-width: 560px;
    }


    .login-container {
        max-width: 410px;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 850px) {

    .login-page {
        flex-direction: column;
    }


    .login-brand {
        width: 100%;
        min-height: auto;
        padding: 35px 40px;
    }


    .brand-message {
        margin-top: 40px;
    }


        .brand-message h2 {
            font-size: 42px;
        }


        .brand-message p {
            max-width: 650px;
        }


    .crm-illustration {
        min-height: 300px;
    }


    .crm-illustration-image {
        max-width: 560px;
    }


    .login-form-section {
        width: 100%;
        min-height: auto;
        padding: 55px 40px;
    }


    .login-container {
        max-width: 500px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .login-page {
        min-height: 100vh;
    }


    .login-brand {
        display: none;
    }


    .login-form-section {
        min-height: 100vh;
        align-items: flex-start;
        padding: 30px 22px;
    }


    .login-container {
        max-width: 100%;
    }


    .mobile-brand {
        display: flex;
    }


    .login-help {
        margin-bottom: 24px;
    }


    .login-welcome-icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        margin-bottom: 18px;
    }


        .login-welcome-icon i {
            font-size: 28px;
        }


    .login-container h2.login-title {
        font-size: 31px;
    }


    .login-subtitle {
        font-size: 14px;
        margin-bottom: 27px;
    }


    .login-input {
        height: 51px;
        font-size: 14px;
    }


    .form-options {
        align-items: center;
        gap: 15px;
    }


    .remember-me,
    .forgot-password {
        font-size: 12px;
    }


    .sign-in-btn {
        height: 52px;
    }


    .company-registration-cta {
        padding: 16px;
    }


    .company-registration-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }


        .company-registration-icon i {
            font-size: 21px;
        }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .login-form-section {
        padding: 27px 18px;
    }


    .mobile-brand {
        margin-bottom: 27px;
    }


    .login-container h2.login-title {
        font-size: 27px;
    }


    .login-help {
        font-size: 12px;
    }


    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }


    .forgot-password {
        margin-left: 24px;
    }


    .company-registration-cta {
        flex-direction: column;
    }


    .company-registration-link {
        width: 100%;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
