﻿/* =========================================================
   Safety_Security
   ADMIN LOGIN PAGE
   PREMIUM ADMIN THEME
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #f7f8fa;
    color: #111827;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   PAGE
========================================================= */

.lg-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}


/* =========================================================
   RTI BACKGROUND LOGO
========================================================= */

.lg-rti-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: -3;
    overflow: hidden;
}


    .lg-rti-background img {
        width: min(620px, 65vw);
        max-width: 620px;
        height: auto;
        object-fit: contain;
        opacity: 0.065;
        filter: blur(2px) grayscale(100%);
        transform: scale(1.05);
        user-select: none;
        -webkit-user-drag: none;
    }


/* =========================================================
   BACKGROUND OVERLAY
========================================================= */

.lg-background-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient( circle at center, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.80) 38%, rgba(247, 248, 250, 0.94) 100% );
}


/* =========================================================
   GOLD BACKGROUND GLOW
========================================================= */

.lg-page::before {
    content: "";
    position: fixed;
    width: 430px;
    height: 430px;
    top: -220px;
    right: -180px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.055);
    pointer-events: none;
    z-index: -1;
}


.lg-page::after {
    content: "";
    position: fixed;
    width: 360px;
    height: 360px;
    bottom: -190px;
    left: -170px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.025);
    pointer-events: none;
    z-index: -1;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.lg-card {
    width: 100%;
    max-width: 460px;
    padding: 38px 40px 28px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(237, 240, 244, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10), 0 4px 18px rgba(15, 23, 42, 0.045);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height:600px;
}


    /* =========================================================
   CARD TOP GOLD LINE
========================================================= */

    .lg-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 76px;
        height: 3px;
        border-radius: 0 0 8px 8px;
        background: linear-gradient( 90deg, #b18b20, #d4af37, #b18b20 );
    }


/* =========================================================
   TOP ICON
========================================================= */

.lg-icon-wrap {
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.lg-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient( 145deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06) );
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #b18b20;
    font-size: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}


.lg-icon-ring {
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.25);
}


/* =========================================================
   HEADER
========================================================= */

.lg-header {
    text-align: center;
    margin-bottom: 28px;
}


.lg-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #b18b20;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}


.lg-header h1 {
    margin: 0;
    color: #111827;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}


.lg-header p {
    margin: 7px auto 0;
    max-width: 340px;
    color: #7b8492;
    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   FORM GROUP
========================================================= */

.lg-form-group {
    margin-bottom: 19px;
}


    .lg-form-group > label,
    .lg-label-row label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 12px;
        font-weight: 600;
    }


    .lg-form-group label span {
        color: #c79d24;
    }


/* =========================================================
   LABEL ROW
========================================================= */

.lg-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


    .lg-label-row label {
        margin-bottom: 8px;
    }


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.lg-forgot-link {
    margin-bottom: 8px;
    color: #b18b20;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .lg-forgot-link:hover {
        color: #8f7116;
        text-decoration: underline;
    }


/* =========================================================
   INPUT
========================================================= */

.lg-input-wrap {
    width: 100%;
    position: relative;
}


.lg-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s ease;
}


.lg-input-wrap input {
    width: 100%;
    height: 38px;
    padding: 0 47px 0 42px;
    box-sizing: border-box;
    border: 1px solid #e3e7ed;
    border-radius: 11px;
    background: #fbfcfd;
    color: #111827;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


    .lg-input-wrap input::placeholder {
        color: #a5acb7;
    }


    .lg-input-wrap input:hover {
        border-color: #d5dbe3;
    }


    .lg-input-wrap input:focus {
        background: #ffffff;
        border-color: rgba(212, 175, 55, 0.65);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.09);
    }


.lg-input-wrap:focus-within
.lg-input-icon {
    color: #b18b20;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.lg-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8d96a4;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}


    .lg-password-toggle:hover {
        background: #f2f4f7;
        color: #b18b20;
    }


/* =========================================================
   ERROR
========================================================= */

.lg-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: #dc2626;
    font-size: 11px;
}


/* =========================================================
   INVALID INPUT
========================================================= */

.lg-input-wrap.invalid input {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06);
}


/* =========================================================
   VALID INPUT
========================================================= */

.lg-input-wrap.valid input {
    border-color: rgba(34, 197, 94, 0.45);
}


/* =========================================================
   REMEMBER ME
========================================================= */

.lg-options {
    margin-top: 1px;
    margin-bottom: 18px;
}


.lg-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}


    .lg-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.lg-checkmark {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dde4;
    border-radius: 5px;
    background: #ffffff;
    color: #ffffff;
    font-size: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}


.lg-checkbox input:checked + .lg-checkmark {
    background: #111827;
    border-color: #111827;
}


.lg-check-label {
    color: #687181;
    font-size: 11px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.lg-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 19px;
    padding: 11px 12px;
    border-radius: 9px;
    background: #faf9f3;
    border: 1px solid rgba(212, 175, 55, 0.12);
    color: #7b8492;
    font-size: 10px;
    line-height: 1.5;
}


    .lg-security-note i {
        color: #b18b20;
        margin-top: 2px;
    }


/* =========================================================
   LOGIN BUTTON
========================================================= */

.lg-login-btn {
    width: 100%;
    min-height: 47px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #111827;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(17, 24, 39, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


    .lg-login-btn:hover {
        background: #1b2638;
        transform: translateY(-1px);
        box-shadow: 0 11px 24px rgba(17, 24, 39, 0.18);
    }


    .lg-login-btn:active {
        transform: translateY(0);
    }


    .lg-login-btn i {
        color: #d4af37;
    }


/* =========================================================
   LOADING
========================================================= */

.lg-btn-loading {
    display: none;
}


.lg-login-btn.loading
.lg-btn-text {
    display: none;
}


.lg-login-btn.loading
.lg-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* =========================================================
   LOGIN CARD FOOTER
========================================================= */

.lg-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
    color: #9aa2ad;
    font-size: 9px;
    letter-spacing: 0.3px;
}


.lg-footer-dot {
    color: #d4af37;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 767px) {

    .lg-page {
        min-height: 100vh;
        padding: 25px 16px;
    }


    .lg-rti-background img {
        width: 75vw;
        opacity: 0.055;
        filter: blur(2px) grayscale(100%);
    }


    .lg-card {
        max-width: 440px;
        padding: 30px 27px 24px;
        border-radius: 17px;
    }


    .lg-icon-wrap {
        width: 80px;
        height: 80px;
        margin-bottom: 19px;
    }


    .lg-icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 22px;
    }


    .lg-icon-ring {
        width: 78px;
        height: 78px;
    }


    .lg-header {
        margin-bottom: 24px;
    }


        .lg-header h1 {
            font-size: 22px;
        }


        .lg-header p {
            font-size: 11px;
        }


    .lg-form-group {
        margin-bottom: 17px;
    }


    .lg-input-wrap input {
        height: 46px;
        font-size: 12px;
    }


    .lg-security-note {
        font-size: 9px;
    }


    .lg-login-btn {
        min-height: 45px;
    }
}


/* =========================================================
   SMALL MOBILE — 480px
========================================================= */

@media (max-width: 480px) {

    .lg-page {
        padding: 20px 12px;
    }


    .lg-rti-background img {
        width: 100vw;
        max-width: 420px;
        opacity: 0.045;
        filter: blur(3px) grayscale(100%);
    }


    .lg-card {
        padding: 25px 20px 21px;
        border-radius: 15px;
    }


        .lg-card::before {
            width: 60px;
        }


    .lg-icon-wrap {
        width: 73px;
        height: 73px;
        margin-bottom: 16px;
    }


    .lg-icon {
        width: 55px;
        height: 55px;
        border-radius: 16px;
        font-size: 20px;
    }


    .lg-icon-ring {
        width: 71px;
        height: 71px;
    }


    .lg-eyebrow {
        font-size: 8px;
        letter-spacing: 1.4px;
    }


    .lg-header h1 {
        font-size: 20px;
    }


    .lg-header p {
        font-size: 10px;
        line-height: 1.55;
    }


    .lg-form-group > label,
    .lg-label-row label {
        font-size: 11px;
    }


    .lg-input-wrap input {
        height: 44px;
        padding-left: 39px;
        padding-right: 43px;
        font-size: 11px;
    }


    .lg-input-icon {
        left: 13px;
        font-size: 11px;
    }


    .lg-password-toggle {
        right: 7px;
    }


    .lg-check-label {
        font-size: 10px;
    }


    .lg-forgot-link {
        font-size: 9px;
    }


    .lg-security-note {
        padding: 10px;
        font-size: 9px;
    }


    .lg-login-btn {
        min-height: 44px;
        font-size: 11px;
    }


    .lg-footer {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 8px;
    }
}


/* =========================================================
   EXTRA SMALL — 360px
========================================================= */

@media (max-width: 360px) {

    .lg-page {
        padding: 15px 9px;
    }


    .lg-rti-background img {
        width: 110vw;
        opacity: 0.035;
        filter: blur(3px) grayscale(100%);
    }


    .lg-card {
        padding: 21px 16px 18px;
    }


    .lg-header h1 {
        font-size: 18px;
    }


    .lg-header p {
        font-size: 9px;
    }


    .lg-form-group {
        margin-bottom: 15px;
    }


    .lg-security-note {
        font-size: 8px;
    }


    .lg-footer {
        font-size: 7px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lg-input-wrap input,
    .lg-password-toggle,
    .lg-login-btn,
    .lg-forgot-link {
        transition: none;
    }
}
/* =========================================================
   RTI LOGO INSIDE LOGIN ICON
========================================================= */

.lg-logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

@media (max-width: 767px) {

    .lg-logo-image {
        width: 38px;
        height: 38px;
    }
}


@media (max-width: 480px) {

    .lg-logo-image {
        width: 35px;
        height: 35px;
    }
}


@media (max-width: 360px) {

    .lg-logo-image {
        width: 32px;
        height: 32px;
    }
}
.lg-server-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.20);
    color: #dc2626;
    font-size: 13px;
    line-height: 1.5;
}

    .lg-server-error i {
        font-size: 15px;
        flex-shrink: 0;
    }

/* =========================================================
   FORGOT PASSWORD
========================================================= */

.lg-header-description {
    max-width: 340px;
    margin: 10px auto 0;
    color: #7b8492;
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.lg-server-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    padding: 11px 13px;
    border: 1px solid #cce8da;
    border-radius: 9px;
    background: #eaf7f0;
    color: #198754;
    font-size: 11px;
    line-height: 1.5;
}

    .lg-server-success i {
        flex-shrink: 0;
        font-size: 14px;
    }


/* =========================================================
   BACK TO LOGIN
========================================================= */

.lg-back-login {
    margin-top: 18px;
    text-align: center;
}

    .lg-back-login a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #8b711f;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
        transition: color .2s ease, transform .2s ease;
    }

        .lg-back-login a:hover {
            color: #b18b20;
            transform: translateX(-2px);
        }

        .lg-back-login a i {
            font-size: 10px;
        }