﻿/* ==========================================
   HI-TECH ERP LOGIN
   Premium Dark Glass Enterprise Design V13
========================================== */


* {
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}


html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}


body {
    overflow: hidden;
}





/* ==========================================
   BACKGROUND
========================================== */


.login-page {
    width: 100vw;
    height: 100vh;
    background: linear-gradient( rgba(3,18,45,.35), rgba(3,18,45,.65) ), url('/images/login-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    direction: ltr;
    justify-content: flex-start;
    align-items: center;
    padding-left: 70px;
}







/* ==========================================
   GLASS CARD
========================================== */


.login-glass {
    position: relative;
    width: 460px;
    min-height: 700px;
    background: rgba(15,35,65,.48);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 35px;
    border: 1px solid rgba(255,255,255,.25);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,.70);
    animation: showCard .8s ease;
}









    /* ==========================================
   REMOVE HEADER COLOR
========================================== */


    .login-glass::before {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent;
        z-index: 0;
    }








    /* LIGHT EFFECT ONLY */


    .login-glass::after {
        content: "";
        position: absolute;
        top: -120px;
        right: -120px;
        width: 320px;
        height: 320px;
        background: radial-gradient( circle, rgba(255,255,255,.10), transparent 70% );
        z-index: 1;
    }








    .login-glass > * {
        position: relative;
        z-index: 3;
    }









/* ==========================================
   LOGO CENTER
========================================== */


.logo-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
}







.login-logo {
    width: 350px;
    height: 190px;
    object-fit: contain;
    display: block;
    filter: drop-shadow( 0 18px 35px rgba(0,0,0,.60) );
}







/* NO LINE UNDER LOGO */


.logo-container::after {
    display: none;
}









/* ==========================================
   FORM
========================================== */


form {
    padding: 5px 45px 25px;
}









/* ==========================================
   INPUT BOX
========================================== */


.input-box {
    height: 62px;
    width: 100%;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.80);
    border-radius: 18px;
    display: flex;
    align-items: center;
    overflow: hidden;
    direction: rtl;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
    transition: .3s;
}








    .input-box:hover {
        transform: translateY(-3px);
        border-color: #00A8FF;
    }







    .input-box:focus-within {
        box-shadow: 0 0 0 4px rgba(0,168,255,.18);
    }









    .input-box i {
        width: 60px;
        text-align: center;
        color: #0077CC;
        font-size: 22px;
    }









    .input-box input,
    .input-box select {
        flex: 1;
        height: 100%;
        border: none;
        outline: none;
        padding: 0 15px;
        font-size: 17px;
        color: #222;
    }








    .input-box button {
        width: 55px;
        height: 100%;
        border: none;
        background: white;
        cursor: pointer;
    }
/* ==========================================
   OPTIONS
========================================== */


.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0;
}




    .options label {
        color: white;
        font-size: 14px;
    }





    .options a {
        color: #00A8FF;
        font-weight: bold;
        text-decoration: none;
    }



        .options a:hover {
            text-decoration: underline;
        }









/* ==========================================
   ERROR MESSAGE
========================================== */


.error {
    background: rgba(255,80,80,.18);
    border: 1px solid rgba(255,100,100,.35);
    color: #ffecec;
    padding: 12px;
    border-radius: 15px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}









/* ==========================================
   LOGIN BUTTON
========================================== */


.login-button {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 18px;
    background: linear-gradient( 135deg, #0088DD, #00C6FF );
    color: white;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,168,255,.40);
    transition: .3s;
}







    .login-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 45px rgba(0,168,255,.55);
    }









/* ==========================================
   GUEST BUTTON
========================================== */


.guest-button {
    margin-top: 20px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid #00A8FF;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: .3s;
}







    .guest-button:hover {
        background: #00A8FF;
        box-shadow: 0 10px 30px rgba(0,168,255,.40);
    }









/* ==========================================
   FOOTER
========================================== */


.footer-info {
    padding: 20px 35px;
    border-top: 1px solid rgba(255,255,255,.25);
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 12px;
    background: rgba(0,0,0,.10);
}







    .footer-info i {
        color: #00A8FF;
    }









/* ==========================================
   ANIMATION
========================================== */


@keyframes showCard {


    from {
        opacity: 0;
        transform: translateY(40px);
    }



    to {
        opacity: 1;
        transform: translateY(0);
    }
}









/* ==========================================
   MOBILE
========================================== */


@media(max-width:900px) {



    body {
        overflow: auto;
    }





    .login-page {
        padding: 20px;
        justify-content: center;
    }






    .login-glass {
        width: 100%;
        max-width: 460px;
    }






    .login-logo {
        width: 300px;
        height: 170px;
    }






    form {
        padding: 5px 25px 25px;
    }
}
/* ==========================================
   LIGHT / DARK MODE BUTTON
========================================== */


.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.15);
    color: white;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    backdrop-filter: blur(10px);
}



    .theme-toggle:hover {
        background: #00A8FF;
    }






/* LIGHT MODE */

.login-glass.light-mode {
    background: rgba(255,255,255,.45);
}
    /* ==========================================
   IMPROVED LIGHT MODE
========================================== */


    .login-glass.light-mode .options label {
        color: #222;
    }



    .login-glass.light-mode .footer-info {
        color: #222;
    }



    .login-glass.light-mode .guest-button {
        color: #0066CC;
        border-color: #0066CC;
        background: rgba(255,255,255,.40);
    }



    .login-glass.light-mode .theme-toggle {
        color: #0066CC;
        background: rgba(255,255,255,.60);
    }



    .login-glass.light-mode .error {
        color: #900;
    }


    .login-glass.light-mode .options label {
        color: #222;
    }



    .login-glass.light-mode .footer-info {
        color: #222;
    }