﻿/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: linear-gradient( 135deg, #f7f9fc 0%, #eef3f8 50%, #f7f9fc 100% );
}


/* =========================================================
   PAGE
========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}


/* =========================================================
   CARD
========================================================= */

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 38px 36px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba( 15, 23, 42, 0.10 );
}


/* =========================================================
   BRAND
========================================================= */

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}


.login-company-logo {
    display: block;
    width: auto;
    height: 72px;
    max-width: 260px;
    object-fit: contain;
}


/* =========================================================
   HEADING
========================================================= */

.login-heading {
    margin-bottom: 28px;
    text-align: center;
}


.eyebrow {
    margin: 0 0 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #1d4ed8;
}


.login-heading h1 {
    margin: 0 0 9px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}


.login-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 18px;
}


    .form-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }


    .form-group input {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        border: 1px solid #d5dbe5;
        border-radius: 9px;
        background: #ffffff;
        color: #111827;
        font-size: 14px;
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }


        .form-group input::placeholder {
            color: #9ca3af;
        }


        .form-group input:focus {
            border-color: #1d4ed8;
            box-shadow: 0 0 0 3px rgba( 29, 78, 216, 0.10 );
        }


/* =========================================================
   PASSWORD INPUT
========================================================= */

.password-input-wrapper {
    position: relative;
    width: 100%;
}


    .password-input-wrapper input {
        padding-right: 48px;
    }


.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}


    .password-toggle:hover {
        background: #f3f4f6;
        color: #1d4ed8;
    }


    .password-toggle:focus-visible {
        box-shadow: 0 0 0 3px rgba( 29, 78, 216, 0.12 );
    }


.password-eye {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px ;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}


    .password-eye[hidden] {
        display: none;
    }


/* =========================================================
   REMEMBER ME
========================================================= */

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}


    .remember-row input {
        width: 15px;
        height: 15px;
        accent-color: #1d4ed8;
    }


/* =========================================================
   ERROR
========================================================= */

.login-error {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: #fff1f2;
    color: #b42332;
    font-size: 13px;
    line-height: 1.4;
}


.hidden {
    display: none;
}


/* =========================================================
   BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 9px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}


    .login-button:hover {
        background: #1e40af;
        box-shadow: 0 8px 18px rgba( 29, 78, 216, 0.18 );
    }


    .login-button:active {
        transform: translateY(1px);
    }


    .login-button:disabled {
        opacity: 0.6;
        cursor: default;
        box-shadow: none;
    }


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}


    .login-footer span {
        font-size: 12px;
        font-weight: 600;
        color: #9ca3af;
    }


    .login-footer .login-app-version {
        font-size: 10px;
        font-weight: 500;
        color: #b0b7c3;
    }


/* =========================================================
   ACCESS DENIED SHARED LINK
========================================================= */

.access-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 18px;
    }


    .login-card {
        padding: 30px 24px 26px;
        border-radius: 14px;
    }


    .login-company-logo {
        height: 62px;
        max-width: 220px;
    }


    .login-heading h1 {
        font-size: 25px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 400px) {

    .login-page {
        padding: 12px;
    }


    .login-card {
        padding: 26px 18px 22px;
    }


    .login-company-logo {
        height: 54px;
        max-width: 190px;
    }


    .login-heading h1 {
        font-size: 23px;
    }


    .login-heading p {
        font-size: 13px;
    }


    .password-toggle {
        right: 6px;
        width: 32px;
        height: 32px;
    }


    .password-eye {
        width: 18px;
        height: 18px;
    }
}
