﻿/* =========================================
   SKOOLMAX CRM LOGIN
   ========================================= */

:root {
    --primary: #07507B;
    --primary-dark: #043d5f;
    --primary-light: #eaf4f9;
    --text: #17232d;
    --muted: #7b8790;
    --border: #e3e9ed;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #f5f8fa;
}

a {
    text-decoration: none;
}


/* MAIN */

.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 48% 52%;
}


/* LEFT */

.login-left {
    position: relative;
    min-height: 100vh;
    padding: 35px 8%;
    background: linear-gradient(145deg, #07507B, #043957);
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.brand-name {
    font-size: 23px;
    font-weight: 750;
    line-height: 1.1;
}

    .brand-name span {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        letter-spacing: 3px;
        opacity: .75;
    }

.login-left-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: auto 0;
    padding: 50px 0;
}

.welcome-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c4e3f2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

    .welcome-label span {
        width: 22px;
        height: 2px;
        background: #7fd2ee;
    }

.login-left-content h1 {
    margin: 25px 0 18px;
    font-size: clamp(36px, 4vw, 53px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -1.5px;
}

    .login-left-content h1 span {
        color: #8bd9f1;
    }

.login-left-content > p {
    max-width: 430px;
    color: #d2e6f0;
    font-size: 14px;
    line-height: 1.9;
}

.login-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 11px;
    background: rgba(255,255,255,.12);
    color: #a6e2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.login-feature strong {
    display: block;
    font-size: 13px;
    font-weight: 650;
}

.login-feature small {
    display: block;
    margin-top: 4px;
    color: #c0d9e5;
    font-size: 11px;
}

.login-left-footer {
    position: relative;
    z-index: 2;
    color: #b9d3df;
    font-size: 10px;
}


/* DECORATION */

.login-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 430px;
    height: 430px;
    right: -210px;
    top: 12%;
}

.decoration-two {
    width: 600px;
    height: 600px;
    right: -300px;
    top: 5%;
}


/* RIGHT */

.login-right {
    min-height: 100vh;
    padding: 35px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 390px;
}


/* HEADING */

.login-heading {
    margin-bottom: 32px;
}

.login-heading-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.login-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 27px;
    font-weight: 750;
}

.login-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}


/* FORM */

.login-field {
    margin-bottom: 21px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        color: #34434d;
        font-size: 12px;
        font-weight: 650;
    }

.login-input {
    position: relative;
}

    .login-input > i {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: #89969e;
        font-size: 16px;
        pointer-events: none;
    }

    .login-input input {
        width: 100%;
        height: 49px;
        padding: 0 45px 0 43px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #ffffff;
        color: var(--text);
        font-size: 13px;
        outline: none;
        transition: .2s ease;
    }

        .login-input input::placeholder {
            color: #a6afb5;
        }

        .login-input input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(7,80,123,.08);
        }


/* PASSWORD */

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 49px;
    border: 0;
    background: transparent;
    color: #87939b;
    cursor: pointer;
    font-size: 16px;
}

    .password-toggle:hover {
        color: var(--primary);
    }


/* OPTIONS */

.login-options {
    margin: 3px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #596771;
    font-size: 11px;
    cursor: pointer;
}

    .remember-me input {
        width: 15px;
        height: 15px;
        accent-color: var(--primary);
    }

.login-options a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 650;
}

    .login-options a:hover {
        text-decoration: underline;
    }


/* SIGN IN */

.login-submit {
    width: 100%;
    height: 49px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: .2s ease;
}

    .login-submit:hover {
        background: var(--primary-dark);
        box-shadow: 0 5px 15px rgba(7,80,123,.18);
    }

    .login-submit i {
        font-size: 16px;
    }


/* ERROR */

.login-error {
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid #f2caca;
    border-radius: 7px;
    background: #fff1f1;
    color: #bb3434;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}


/* SECURITY */

.login-security {
    margin-top: 25px;
    color: #87939b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 10px;
}

    .login-security i {
        color: var(--primary);
        font-size: 14px;
    }

.login-bottom {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid #edf0f2;
    color: #9aa4aa;
    text-align: center;
    font-size: 10px;
}

    .login-bottom strong {
        color: var(--primary);
    }


/* MOBILE BRAND */

.mobile-brand {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .login-wrapper {
        grid-template-columns: 42% 58%;
    }

    .login-left {
        padding: 30px 7%;
    }

    .login-left-content h1 {
        font-size: 37px;
    }
}

@media (max-width: 650px) {

    .login-wrapper {
        display: block;
    }

    .login-left {
        display: none;
    }

    .login-right {
        min-height: 100vh;
        padding: 25px 22px;
        background: #f6f9fb;
    }

    .login-box {
        max-width: 420px;
        padding: 28px 23px;
        border: 1px solid #edf0f2;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 8px 30px rgba(15,45,65,.06);
    }

    .mobile-brand {
        margin-bottom: 35px;
        display: flex;
        align-items: center;
        gap: 11px;
        color: var(--primary);
        font-size: 19px;
    }

        .mobile-brand .brand-icon {
            width: 39px;
            height: 39px;
            background: var(--primary);
            color: white;
            font-size: 19px;
        }

        .mobile-brand span {
            color: var(--muted);
            font-size: 10px;
            letter-spacing: 1px;
        }

    .login-heading h2 {
        font-size: 24px;
    }

    .login-bottom {
        margin-top: 30px;
    }
}
