﻿:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --cyan: #06b6d4;
    --dark: #07152e;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}


.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #f8fafc;
}


/* =====================================================
   LEFT
===================================================== */

.login-left {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 45px 7%;
    color: white;
    background: radial-gradient( circle at 80% 15%, rgba(6,182,212,.25), transparent 28% ), radial-gradient( circle at 10% 90%, rgba(37,99,235,.3), transparent 30% ), linear-gradient( 145deg, #061329, #0d2854, #123e73 );
}


    .login-left::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        right: -300px;
        bottom: -250px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.08);
    }


    .login-left::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        left: -230px;
        top: 35%;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.06);
    }


/* BRAND */

.login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
}


.brand-logo {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    box-shadow: 0 10px 25px rgba(37,99,235,.3);
}


.login-brand strong,
.mobile-logo strong {
    display: block;
    line-height: 1;
    font-size: 17px;
    letter-spacing: .3px;
}


.login-brand span,
.mobile-logo span {
    display: block;
    margin-top: 5px;
    color: #60a5fa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* LEFT CONTENT */

.login-left-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: auto 0;
}


.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 30px;
    color: #cbd5e1;
    background: rgba(255,255,255,.06);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


    .login-badge i {
        color: #4ade80;
        font-size: 14px;
    }


.login-left h1 {
    margin: 25px 0 20px;
    font-size: clamp(38px,4vw,58px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
}


    .login-left h1 span {
        background: linear-gradient( 90deg, #60a5fa, #22d3ee );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }


.login-left-content > p {
    max-width: 540px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
}


.login-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: #cbd5e1;
    font-size: 11px;
}


    .login-features i {
        margin-right: 5px;
        color: #4ade80;
    }


.login-left-footer {
    position: relative;
    z-index: 2;
    color: #64748b;
    font-size: 9px;
    letter-spacing: .5px;
}


/* =====================================================
   RIGHT
===================================================== */

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
}


.login-card {
    width: 100%;
    max-width: 450px;
    padding: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: white;
    box-shadow: 0 25px 70px rgba(15,23,42,.08);
}


.login-heading {
    margin-bottom: 30px;
}


    .login-heading h2 {
        margin: 0;
        color: var(--dark);
        font-size: 27px;
        font-weight: 800;
    }


    .login-heading p {
        margin: 7px 0 0;
        color: var(--muted);
        font-size: 13px;
    }


/* MOBILE LOGO */

.mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
}


/* ERROR */

.login-error {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 11px 13px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    font-size: 12px;
}


/* FORM */

.form-group {
    margin-bottom: 20px;
}


    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
    }


.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


    .password-label label {
        margin: 0;
    }


    .password-label a {
        color: var(--primary);
        font-size: 10px;
        font-weight: 600;
    }


.input-wrapper {
    position: relative;
}


    .input-wrapper > i {
        position: absolute;
        left: 14px;
        top: 50%;
        z-index: 2;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 16px;
    }


    .input-wrapper .form-control {
        height: 58px;
        padding: 0 48px;
        border: 1px solid #dbe1e8;
        border-radius: 10px;
        color: #0f172a;
        background: #fff;
        font-size: 18px; /* BIG username/password text */

        font-weight: 600; /* Slightly bold */

        letter-spacing: 0.2px;
        box-shadow: none;
        transition: .2s;
    }

        .input-wrapper .form-control::placeholder {
            color: #94a3b8;
            font-size: 16px;
            font-weight: 400;
        }

        .input-wrapper .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37,99,235,.1);
        }


.password-button {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    color: #64748b;
    background: transparent;
}


    .password-button:hover {
        color: var(--primary);
        background: #eff6ff;
    }


/* REMEMBER */

.remember-row {
    margin: 5px 0 20px;
}


.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 11px;
}


    .remember input {
        width: 15px;
        height: 15px;
        accent-color: var(--primary);
    }


/* LOGIN BUTTON */

.login-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37,99,235,.2);
    transition: .25s;
}


    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(37,99,235,.28);
    }


/* SECURITY */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 9px;
}


    .login-security i {
        color: #16a34a;
        font-size: 13px;
    }


/* BACK */

.back-home {
    margin-top: 25px;
    text-align: center;
}


    .back-home a {
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }


        .back-home a:hover {
            color: var(--primary);
        }


/* =====================================================
   TABLET
===================================================== */

@media(max-width:991px) {

    .login-page {
        grid-template-columns: 1fr;
    }


    .login-left {
        display: none;
    }


    .login-right {
        min-height: 100vh;
        padding: 25px;
    }


    .mobile-logo {
        display: flex;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:575px) {

    .input-wrapper .form-control {
        height: 56px;
        font-size: 17px;
    }

        .input-wrapper .form-control::placeholder {
            font-size: 15px;
        }

    .login-right {
        align-items: flex-start;
        padding: 20px 14px;
    }


    .login-card {
        margin-top: 10px;
        padding: 30px 22px;
        border-radius: 17px;
        box-shadow: 0 15px 40px rgba(15,23,42,.06);
    }


    .login-heading h2 {
        font-size: 24px;
    }


    .mobile-logo {
        margin-bottom: 28px;
    }


    .login-heading {
        margin-bottom: 25px;
    }
}


@media(max-width:360px) {

    .login-card {
        padding: 25px 18px;
    }
}
