﻿/* =========================================================
   LOGIN PAGE
========================================================= */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #edf2fb;
}

.login-page {
    min-height: 100vh;
    padding: 28px;
}

.login-wrapper {
    min-height: calc(100vh - 56px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 52% 48%;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   LEFT SIDE
========================================================= */

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(248, 251, 255, 0.94) 0%, rgba(241, 246, 255, 0.88) 100% );
}

.login-logo,
.left-content,
.feature-list {
    position: relative;
    z-index: 2;
}

    .login-logo img {
        width: 200px;
    }

/* =========================================================
   CONTENT
========================================================= */

.left-content {
    max-width: 560px;
}

    .left-content h1 {
        font-size: 30px;
        line-height: 1.15;
        font-weight: 700;
        color: #071b63;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

        .left-content h1 span {
            color: #2453ff;
        }

.title-line {
    width: 60px;
    height: 4px;
    border-radius: 30px;
    background: #2453ff;
    margin-bottom: 18px;
}

.left-description {
    font-size: 14px;
    line-height: 1.7;
    color: #53627f;
    max-width: 500px;
    margin-bottom: 16px;
}

/* =========================================================
   FEATURES
========================================================= */

.feature-list {
    max-width: 520px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(187, 199, 223, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(36, 83, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .feature-icon i {
        font-size: 20px;
        color: #2453ff;
    }

.feature-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #071b63;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #4f5f7d;
    margin: 0;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.login-right {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 44px 44px 32px;
}
.login-form-box {
    width: 100%;
    max-width: 620px;
}

/* =========================================================
   USER ICON
========================================================= */

.user-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 2px solid #d9e4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-icon i {
        font-size: 32px;
        color: #c1d0f5;
    }

/* =========================================================
   TITLE
========================================================= */

.login-form-box h2 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #071b63;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #62708f;
    margin-bottom: 16px;
}

/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #071b63;
        margin-bottom: 8px;
    }

.input-wrapper {
    position: relative;
}

.custom-input {
    width: 100%;
    height: 48px;
    border: 2px solid #dce4f2;
    border-radius: 12px;
    padding: 0 48px;
    font-size: 14px;
    color: #071b63;
    outline: none;
    transition: 0.3s ease;
}

    .custom-input:focus {
        border-color: #2453ff;
    }

    .custom-input::placeholder {
        color: #98a4c0;
    }

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #7c8bab;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #7c8bab;
    font-size: 16px;
}

/* =========================================================
   REMEMBER
========================================================= */

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .remember-me input {
        width: 20px;
        height: 20px;
    }

    .remember-me label,
    .forgot-password {
        font-size: 16px;
        color: #62708f;
        text-decoration: none;
    }

.forgot-password {
    color: #2453ff;
}

/* =========================================================
   BUTTON
========================================================= */

.signin-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #2453ff 0%, #0047ff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

    .signin-btn:hover {
        transform: translateY(-2px);
    }

/* =========================================================
   HELP
========================================================= */

.login-help {
    margin-top: 20px;
    text-align: center;
}

.help-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

    .help-divider::before,
    .help-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #dce4f2;
    }

    .help-divider span {
        font-size: 16px;
        color: #6b7895;
    }

.login-help p {
    font-size: 16px;
    color: #62708f;
    margin-bottom: 18px;
}

.login-help a {
    font-size: 16px;
    font-weight: 600;
    color: #2453ff;
    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1400px) {

    .left-content h1 {
        font-size: 28px;
    }

    .feature-content h4 {
        font-size: 14px;
    }

    .feature-content p,
    .left-description {
        font-size: 13px;
    }

    .login-form-box h2 {
        font-size: 20px;
    }
}

/* TABLET */

@media (max-width: 1200px) {

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: auto;
    }

    .login-right {
        padding: 40px;
    }

    .feature-list {
        margin-bottom: 30px;
    }

    .login-left-inner {
        max-width: 100%;
        padding: 40px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .login-page {
        padding: 10px;
    }

    .login-wrapper {
        border-radius: 16px;
    }

    .login-left {
        min-height: auto;
        padding-bottom: 20px;
        background-image: linear-gradient( 180deg, rgba(248,251,255,.96), rgba(248,251,255,.96) ), url('/images/login-left-background.png');
        background-position: center center;
        background-size: cover;
    }

    .login-left-inner {
        padding: 24px;
        max-width: 100%;
    }

    .login-logo img {
        width: 180px;
    }

    .left-content {
        margin-top: 20px;
    }

        .left-content h1 {
            font-size: 24px;
            line-height: 1.2;
            margin-bottom: 12px;
        }

    .title-line {
        margin-bottom: 20px;
    }

    .left-description {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
        max-width: 100%;
    }

    /* Hide features on mobile */
    .feature-list {
        display: none;
    }

    .login-right {
        padding: 20px;
    }

    .login-form-box {
        max-width: 100%;
    }

    .user-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

        .user-icon i {
            font-size: 26px;
        }

    .login-form-box h2 {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .custom-input {
        height: 44px;
        font-size: 14px;
        padding: 0 44px;
    }

    .input-icon {
        left: 18px;
        font-size: 18px;
    }

    .toggle-password {
        right: 18px;
        font-size: 18px;
    }

    .remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .signin-btn {
        height: 44px;
        font-size: 15px;
    }

    .login-help {
        margin-top: 30px;
    }


}
@media (max-width: 768px) {

    .scan-card {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
        margin-bottom: 25px;
        gap: 15px;
        border-radius: 16px;
    }

    .scan-card-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

        .scan-card-icon i {
            font-size: 30px;
        }

    .scan-card-content {
        width: 100%;
    }

        .scan-card-content h4 {
            font-size: 22px;
            line-height: 1.3;
            margin-bottom: 10px;
        }

        .scan-card-content p {
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 15px;
        }

    .scan-link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 220px;
        padding: 12px 20px;
        background: white;
        color: #fff;
        border-radius: 12px;
        text-decoration: none;
    }

        .scan-link:hover {
            color: #fff;
        }
    .scan-card-content p {
        display: none;
    }
}

/* ========================================================= LEFT SIDE WITH LAB IMAGE ========================================================= */

.login-left-inner {
    position: relative;
    z-index: 5;
    padding: 36px 40px;
    max-width: 520px;
}
.login-left {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: linear-gradient( 90deg, rgba(248,251,255,.95) 0%, rgba(248,251,255,.88) 35%, rgba(248,251,255,.45) 100% ), url('/images/login-left-background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
/* soft white overlay */

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(255,255,255,.10), rgba(255,255,255,.03) );
}
/* top water bubble */

.login-left::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -50px;
    right: -50px;
    border-radius: 50%;
    background: rgba(36,83,255,.08);
    z-index: 1;
}
/* bottom water bubble */

.login-left::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(36,83,255,.05);
    z-index: 1;
}

.login-logo, .left-content, .feature-list {
    position: relative;
    z-index: 5;
}


/* =========================================
           VALIDATION MESSAGE
        ========================================= */

.validation-summary-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

    .validation-summary-errors li {
        margin: 0;
    }



/* =========================================
   QR SCAN CARD
========================================= */

.scan-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(36,83,255,.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(36,83,255,.08);
    transition: all .3s ease;
}

    .scan-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(36,83,255,.12);
        border-color: rgba(36,83,255,.25);
    }

.scan-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(36,83,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scan-card-icon i {
        font-size: 22px;
        color: #2453ff;
    }

.scan-card-content {
    flex: 1;
}

    .scan-card-content h4 {
        margin: 0 0 4px;
        font-size: 15px;
        font-weight: 700;
        color: #071b63;
    }

    .scan-card-content p {
        margin: 0 0 8px;
        font-size: 13px;
        line-height: 1.5;
        color: #53627f;
    }

.scan-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2453ff;
    font-size: 16px;
    font-weight: 700;
    transition: all .3s ease;
}

    .scan-link:hover {
        color: #0f3de0;
    }

    .scan-link i {
        font-size: 14px;
        transition: transform .3s ease;
    }

    .scan-link:hover i {
        transform: translateX(4px);
    }