﻿/* ===========================
   Modern Responsive Login Page
   (Login.aspx only)
   ============================ */

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background-color: #f3f4f6;
    color: #111827;
}

/* --------------------------------
   Header / Top Bar
   -------------------------------- */
/* Top bar */
#Head {
    background: linear-gradient(90deg, #0d2a58, #1167b1);
    height: 72px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Header container */
#HdrCnt {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    /* Logo wrapper – add subtle white pill behind logo */
    #HdrCnt .Logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

        /* Logo image – sharper and less faint */
        #HdrCnt .Logo img {
            height: 44px;
            width: auto;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            filter: none; /* remove any dimming */
            opacity: 1; /* ensure full opacity */
        }

/* Help area */
#Help {
    float: none;
    font-size: 13px;
    font-weight: 500;
    color: #e5f0ff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

    #Help img {
        width: 22px;
        height: 22px;
    }


/* --------------------------------
   Hero Background & Layout
   -------------------------------- */

#Hmpg {
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, rgba(13, 42, 88, 0.80), rgba(0, 0, 0, 0.55)), url("../images/LgnPg_Banner.jpg") center center / cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 16px;
    color: #f9fafb;
    padding-top: 80px; /* increase vertical space */
    padding-bottom: 40px;
}

/* Main container */
#PgCnt {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
}

    /* Hide old welcome header image (we draw heading via CSS) */
    #PgCnt > img {
        display: none;
    }

    /* --------------------------------
   Login Card
   -------------------------------- */

    #PgCnt form {
        width: 360px;
        max-width: 100%;
        padding: 28px 24px 20px;
        margin: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 18px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.45);
        display: flex;
        flex-direction: column;
        position: relative;
    }

        /* Title + subtitle using ::before/::after (no markup changes) */
        #PgCnt form::before {
            content: "Welcome to Access Pay";
            display: block;
            font-size: 22px;
            font-weight: 600;
            color: #0d2a58;
            margin-bottom: 4px;
        }

        #PgCnt form::after {
            content: "Sign in to manage payments and reports";
            display: block;
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 20px;
        }

        /* Inputs */
        #PgCnt form input[type="text"],
        #PgCnt form input[type="password"],
        #PgCnt form input[type="email"],
        #PgCnt form input[type="search"] {
            width: 100%;
            line-height: 1.4;
            font-size: 15px;
            font-weight: 400;
            color: #111827;
            min-height: 44px;
            margin: 0 0 14px;
            margin-left: 0;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #d1d5db;
            background-color: #f9fafb;
            transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
        }

        #PgCnt form input::placeholder {
            color: #9ca3af;
        }

        #PgCnt form input[type="text"]:focus,
        #PgCnt form input[type="password"]:focus,
        #PgCnt form input[type="email"]:focus,
        #PgCnt form input[type="search"]:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 1px #2563eb33, 0 0 0 4px rgba(37, 99, 235, 0.10);
            background-color: #ffffff;
        }

/* Sign-in image button */
#btnSignIn {
    margin: 10px 0 8px auto;
    display: block;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

    #btnSignIn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(37, 99, 235, 0.4);
        filter: brightness(1.05);
    }

    #btnSignIn:active {
        transform: translateY(0);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
    }

/* --------------------------------
   Right-hand Marketing Text
   -------------------------------- */

#PgCnt ul {
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
    width: auto;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
    color: #e5e7eb;
}

    #PgCnt ul li {
        padding: 0;
    }

#PgCnt h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #f97316; /* existing orange */
    font-style: normal;
}

/* --------------------------------
   Footer
   -------------------------------- */

#Ftr {
    width: 100%;
    max-width: 1100px;
    margin: 32px auto 0;
    padding: 0 16px 8px;
    text-align: right;
}

    #Ftr img {
        height: 28px;
        width: auto;
    }

/* --------------------------------
   Login Loader (Overlay)
   -------------------------------- */

.login-loader-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-loader-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.50);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.login-loader-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid #d1d5db;
    border-top-color: #f97316;
    border-right-color: #0d2a58;
    animation: login-spin 0.75s linear infinite;
}

.login-loader-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-align: center;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --------------------------------
   Security Alert – Large Modal
   -------------------------------- */

#security_alert .modal-dialog {
    max-width: 720px !important;
    margin: 3rem auto;
}

#security_alert .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

/* Header */
#security_alert .modal-header {
    background: linear-gradient(90deg, #0d2a58, #1167b1);
    color: #f9fafb;
    padding: 12px 20px;
    border-bottom: none;
}

#security_alert .modal-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

    #security_alert .modal-title::before {
        content: "\f132"; /* FontAwesome shield icon */
        font-family: "FontAwesome";
        font-size: 18px;
    }

/* Close button */
#security_alert .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.9;
}

/* Body */
#security_alert .modal-body {
    padding: 0;
    background: #f3f4f6;
}

    /* Image wrapper */
    #security_alert .modal-body .container-fluid {
        padding: 12px 16px 16px;
    }

    #security_alert .modal-body img {
        display: block;
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    }

/* Optional caption */
.security_alert-caption {
    margin-top: 8px;
    font-size: 13px;
    color: #374151;
    text-align: center;
}

/* --------------------------------
   Links (safe global-ish tweak)
   -------------------------------- */

a {
    color: #0d2a58;
    text-decoration: none;
    background-color: transparent;
}

    a:hover {
        text-decoration: underline;
    }

/* --------------------------------
   Responsive Breakpoints
   -------------------------------- */

/* Tablet and down */
@media (max-width: 960px) {
    #PgCnt {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 24px;
    }

        #PgCnt form {
            width: 100%;
            max-width: 420px;
        }

        #PgCnt ul {
            max-width: 600px;
            margin-top: 4px;
        }

    #Ftr {
        text-align: center;
        margin-top: 32px;
    }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
    #Head {
        height: 64px;
    }

    #HdrCnt {
        padding: 8px 12px;
    }

    #Hmpg {
        padding: 24px 12px;
        min-height: calc(100vh - 64px);
        background-attachment: scroll; /* better for mobile perf */
    }

    #PgCnt form {
        padding: 24px 18px 18px;
    }

        #PgCnt form::before {
            font-size: 20px;
        }

    #PgCnt ul {
        font-size: 13px;
    }
}

/* Phones */
@media (max-width: 480px) {
    #HdrCnt {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

        #HdrCnt .Logo img {
            height: 32px;
        }

    #Help {
        font-size: 12px;
    }

    #PgCnt {
        gap: 20px;
    }

        #PgCnt form {
            border-radius: 14px;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.40);
        }

    .login-loader-card {
        width: 90%;
        max-width: 280px;
    }

    #security_alert .modal-dialog {
        margin: 1.5rem auto;
    }
}
