﻿/* =====================================================
   ONLINETEKSUPPORT ERP - LOGIN
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: "Poppins", sans-serif;

    background-image:
        linear-gradient(
            rgba(0, 15, 35, 0.38),
            rgba(0, 15, 35, 0.48)
        ),
        url("../images/background.4961a580eaef.jpg");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;
    position: relative;
}


/* =====================================================
   BACKGROUND OVERLAY
===================================================== */

.background-overlay {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(45, 140, 255, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(0, 120, 255, 0.14),
            transparent 35%
        );

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    pointer-events: none;
    z-index: 1;
}


/* =====================================================
   LOGIN WRAPPER
===================================================== */

.login-wrapper {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 100vh;

    padding: 30px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}


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

.login-card {
    position: relative;

    width: 520px;
    max-width: 100%;

    padding: 42px 45px 30px;

    background: rgba(12, 21, 35, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 20px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    overflow: hidden;

    animation: fadeIn 0.75s ease-out;
}


/* =====================================================
   CARD TOP LINE
===================================================== */

.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #2d8cff,
        #66b2ff,
        transparent
    );
}


/* =====================================================
   LOGO AREA
===================================================== */

.logo-area {
    text-align: center;
    margin-bottom: 24px;
}

.logo-area img {
    width: 125px;
    height: auto;
    max-height: 125px;

    object-fit: contain;

    display: block;
    margin: 0 auto 13px;

    filter:
        drop-shadow(
            0 8px 20px rgba(0, 0, 0, 0.35)
        );

    transition: transform 0.35s ease;
}

.logo-area img:hover {
    transform: scale(1.06);
}

.logo-area h1 {
    font-size: 38px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: 1.5px;

    background: linear-gradient(
        90deg,
        #2d8cff,
        #ffffff,
        #66b2ff
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.logo-area p {
    margin-top: 7px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 10px;

    letter-spacing: 0.4px;
}


/* =====================================================
   DIVIDER
===================================================== */

.login-card hr {
    border: 0;

    height: 1px;

    margin: 23px 0;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.14),
        transparent
    );
}


/* =====================================================
   LOGIN TITLE
===================================================== */

.login-card h2 {
    color: #ffffff;

    text-align: center;

    font-size: 25px;

    font-weight: 600;

    margin-bottom: 25px;
}


/* =====================================================
   ALERT
===================================================== */

.alert {
    background: rgba(255, 77, 77, 0.10);

    border: 1px solid rgba(255, 77, 77, 0.25);

    border-left: 4px solid #ff4d4d;

    color: #ffb3b3;

    padding: 12px 14px;

    border-radius: 9px;

    margin-bottom: 18px;

    font-size: 12px;

    line-height: 1.5;
}


/* =====================================================
   INPUT BOX
===================================================== */

.input-box {
    position: relative;

    width: 100%;

    margin-bottom: 18px;
}

.input-box input {
    width: 100%;

    height: 57px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    outline: none;

    border-radius: 12px;

    background: #ffffff;

    color: #222222;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    padding: 0 58px 0 51px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.input-box input:focus {
    border-color: #2d8cff;

    box-shadow:
        0 0 0 3px rgba(45, 140, 255, 0.18),
        0 8px 25px rgba(0, 0, 0, 0.10);

    transform: translateY(-1px);
}

.input-box input::placeholder {
    color: #8b95a5;
}


/* =====================================================
   LEFT ICON
===================================================== */

.input-box > i {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    color: #2d8cff;

    font-size: 17px;

    z-index: 3;

    pointer-events: none;
}


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

.password-box {
    position: relative;
}

.password-toggle {
    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border: 0;
    outline: 0;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2d8cff;

    cursor: pointer;

    border-radius: 8px;

    z-index: 10;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    background: rgba(45, 140, 255, 0.10);
    color: #005fd0;
}

.password-toggle i {
    font-size: 17px;
    pointer-events: none;
}


/* =====================================================
   LOGIN OPTIONS
===================================================== */

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 8px 1px 25px;

    color: #e6edf7;

    font-size: 12px;
}

.login-options label {
    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    user-select: none;
}

.login-options input[type="checkbox"] {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: #2d8cff;

    cursor: pointer;
}

.login-options a {
    color: #66b2ff;

    text-decoration: none;

    font-weight: 500;

    transition: color 0.25s ease;
}

.login-options a:hover {
    color: #ffffff;
    text-decoration: underline;
}


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

.login-btn {
    width: 100%;

    height: 57px;

    border: 0;
    outline: 0;

    border-radius: 12px;

    background: linear-gradient(
        100deg,
        #126df3,
        #2d8cff,
        #49a4ff
    );

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(22, 119, 255, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 38px rgba(22, 119, 255, 0.42);
}

.login-btn:active {
    transform: scale(0.985);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.82;
    cursor: wait;
}


/* =====================================================
   SUPPORT
===================================================== */

.support {
    margin-top: 24px;

    text-align: center;

    color: #b8c1cf;

    font-size: 12px;
}

.support a {
    color: #66b2ff;

    text-decoration: none;

    font-weight: 600;

    margin-left: 4px;

    transition: color 0.25s ease;
}

.support a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* =====================================================
   COPYRIGHT
===================================================== */

.copyright {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.72);

    font-family: "Poppins", sans-serif;

    font-size: 10px;
    font-weight: 400;

    line-height: 1.6;

    text-align: center;

    letter-spacing: 0.35px;

    opacity: 0.95;
}


/* =====================================================
   AUTOFILL
===================================================== */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset !important;

    -webkit-text-fill-color: #222222 !important;

    caret-color: #222222;
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform:
            translateY(35px)
            scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =====================================================
   SELECTION
===================================================== */

::selection {
    background: #2d8cff;
    color: #ffffff;
}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #07111e;
}

::-webkit-scrollbar-thumb {
    background: #2d8cff;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ea3ff;
}


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

@media (max-width: 768px) {

    .login-wrapper {
        padding: 25px 15px;
    }

    .login-card {
        width: 92%;
        padding: 34px 28px 27px;
        border-radius: 17px;
    }

    .logo-area img {
        width: 100px;
        max-height: 100px;
    }

    .logo-area h1 {
        font-size: 31px;
    }

    .login-card h2 {
        font-size: 22px;
    }

    .input-box input {
        height: 53px;
        font-size: 13px;
    }

    .login-btn {
        height: 53px;
        font-size: 15px;
    }
}


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

@media (max-width: 480px) {

    body {
        background-attachment: scroll;
    }

    .login-wrapper {
        padding: 18px 10px;
    }

    .login-card {
        width: 95%;
        padding: 28px 20px 23px;
        border-radius: 16px;
    }

    .logo-area img {
        width: 78px;
        max-height: 78px;
    }

    .logo-area h1 {
        font-size: 24px;
    }

    .logo-area p {
        font-size: 8px;
    }

    .login-card hr {
        margin: 18px 0;
    }

    .login-card h2 {
        font-size: 19px;
        margin-bottom: 19px;
    }

    .input-box input {
        height: 51px;
        font-size: 12px;
    }

    .login-btn {
        height: 51px;
        font-size: 14px;
    }

    .login-options {
        font-size: 10px;
    }

    .support {
        font-size: 10px;
    }

    .copyright {
        font-size: 8px;
    }
}


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

@media (max-width: 360px) {

    .login-card {
        padding: 23px 16px 20px;
    }

    .logo-area img {
        width: 65px;
        max-height: 65px;
    }

    .logo-area h1 {
        font-size: 21px;
    }

    .login-card h2 {
        font-size: 18px;
    }
}