@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');


/* =========================================================
   M&N BOREHOLE DRILLING ENGINEERS
   ADMIN LOGIN — PREMIUM ENGINEERING STYLE
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --deep-navy: #07101F;
    --midnight-blue: #0D1B2E;

    --royal-blue: #0759C9;
    --electric-blue: #00A9FF;

    --gold: #D99A00;
    --bright-gold: #F5B800;

    --silver: #C9D1D9;

    --white: #FFFFFF;
    --soft-white: #E8EDF3;

    --muted: #8D9AAA;

    --border: rgba(255, 255, 255, 0.10);

    --card-bg: rgba(7, 16, 31, 0.88);

    --input-bg: rgba(255, 255, 255, 0.045);

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.48);

    --transition:
        0.3s cubic-bezier(0.4, 0, 0.2, 1);

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family: "Inter", sans-serif;

    background: var(--deep-navy);

    color: var(--white);

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

}


button,
input {

    font: inherit;

}


button {

    border: 0;

}


a {

    color: inherit;

    text-decoration: none;

}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {

    position: relative;

    min-height: 100vh;

    min-height: 100svh;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    padding: 50px 24px;

    background: var(--deep-navy);

}


/* =========================================================
   BACKGROUND IMAGE
========================================================= */

.login-background {

    position: absolute;

    inset: 0;

    background-image:
        url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2200&q=90");

    background-size: cover;

    background-position: center;

    transform: scale(1.04);

    animation: backgroundReveal 1.4s ease-out forwards;

}


/* =========================================================
   BACKGROUND OVERLAY
========================================================= */

.login-overlay {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 50% 40%,
            rgba(0, 169, 255, 0.09),
            transparent 38%
        ),

        linear-gradient(
            135deg,
            rgba(7, 16, 31, 0.97),
            rgba(7, 16, 31, 0.89) 48%,
            rgba(7, 16, 31, 0.97)
        );

}


/* subtle engineering grid */

.login-overlay::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 80%,
            transparent
        );

}


/* =========================================================
   LOGIN CONTAINER
========================================================= */

.login-container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 460px;

    display: flex;

    flex-direction: column;

    align-items: center;

    animation: containerReveal 0.8s ease-out both;

}


/* =========================================================
   BRAND
========================================================= */

.login-brand {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 28px;

    animation: brandReveal 0.8s ease-out 0.15s both;

}


.login-brand-mark {

    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:

        linear-gradient(
            145deg,
            var(--royal-blue),
            #063F8D
        );

    border: 1px solid rgba(0, 169, 255, 0.4);

    color: var(--white);

    font-family: "Montserrat", sans-serif;

    font-size: 17px;

    font-weight: 800;

    letter-spacing: -0.8px;

    box-shadow:

        0 10px 30px rgba(0, 89, 201, 0.25),

        inset 0 1px 0 rgba(255, 255, 255, 0.18);

}


.login-brand-text {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.login-brand-text strong {

    font-family: "Montserrat", sans-serif;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 0.5px;

    line-height: 1;

}


.login-brand-text span {

    color: var(--silver);

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 1.5px;

    line-height: 1.3;

}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {

    width: 100%;

    padding: 42px;

    background: var(--card-bg);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    position: relative;

    overflow: hidden;

}


/* top accent */

.login-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 2px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--electric-blue),
            var(--bright-gold),
            transparent
        );

}


/* corner detail */

.login-card::after {

    content: "";

    position: absolute;

    width: 130px;

    height: 130px;

    right: -75px;

    top: -75px;

    border: 1px solid rgba(0, 169, 255, 0.12);

    border-radius: 50%;

    pointer-events: none;

}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-card-header {

    margin-bottom: 34px;

}


.login-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 15px;

    color: var(--electric-blue);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


.login-eyebrow span {

    width: 24px;

    height: 1px;

    background: var(--electric-blue);

    display: inline-block;

}


.login-card-header h1 {

    font-family: "Montserrat", sans-serif;

    font-size: clamp(28px, 5vw, 36px);

    line-height: 1.1;

    font-weight: 700;

    letter-spacing: -1px;

    margin-bottom: 11px;

}


.login-card-header p {

    max-width: 350px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================================
   FORM
========================================================= */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 22px;

}


.login-error {

    margin: 0;

    padding: 12px 14px;

    border: 1px solid rgba(255, 118, 109, 0.4);

    border-radius: 6px;

    background: rgba(255, 118, 109, 0.1);

    color: #ffaaa3;

    font-size: 13px;

    line-height: 1.5;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.form-group label {

    color: var(--soft-white);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.7px;

}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrapper {

    position: relative;

    width: 100%;

}


.input-wrapper > i {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 14px;

    pointer-events: none;

    transition: var(--transition);

}


.input-wrapper input {

    width: 100%;

    height: 54px;

    padding:

        0 48px

        0 46px;

    border: 1px solid var(--border);

    outline: none;

    border-radius: 0;

    background: var(--input-bg);

    color: var(--white);

    font-size: 13px;

    transition: var(--transition);

}


.input-wrapper input::placeholder {

    color: #657385;

}


.input-wrapper input:hover {

    border-color:
        rgba(255, 255, 255, 0.18);

}


.input-wrapper input:focus {

    border-color: var(--electric-blue);

    background:
        rgba(0, 169, 255, 0.045);

    box-shadow:
        0 0 0 3px rgba(0, 169, 255, 0.08);

}


.input-wrapper input:focus ~ i {

    color: var(--electric-blue);

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    position: absolute;

    right: 0;

    top: 0;

    width: 48px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    transition: var(--transition);

}


.password-toggle:hover {

    color: var(--electric-blue);

}


.password-toggle:focus-visible {

    outline: 2px solid var(--electric-blue);

    outline-offset: -4px;

}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.login-options {

    display: flex;

    align-items: center;

    min-height: 18px;

    margin-top: -4px;

}


.login-options span {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #718092;

    font-size: 10px;

    letter-spacing: 0.2px;

}


.login-options i {

    color: var(--gold);

    font-size: 11px;

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit {

    width: 100%;

    height: 56px;

    margin-top: 2px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    position: relative;

    overflow: hidden;

    cursor: pointer;

    background:

        linear-gradient(
            135deg,
            var(--royal-blue),
            #06479F
        );

    border: 1px solid
        rgba(0, 169, 255, 0.3);

    color: var(--white);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    transition: var(--transition);

}


.login-submit::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent
        );

    transform: translateX(-120%);

    transition: 0.65s ease;

}


.login-submit:hover {

    transform: translateY(-2px);

    background:

        linear-gradient(
            135deg,
            #0868E6,
            var(--royal-blue)
        );

    box-shadow:

        0 14px 30px
        rgba(7, 89, 201, 0.25);

}


.login-submit:hover::before {

    transform: translateX(120%);

}


.login-submit:active {

    transform: translateY(0);

}


.login-submit i {

    font-size: 11px;

    transition: transform var(--transition);

}


.login-submit:hover i {

    transform: translateX(4px);

}


/* loading */

.login-submit.is-loading {

    pointer-events: none;

    opacity: 0.78;

}


.login-submit.is-loading i {

    animation: buttonSpin 0.8s linear infinite;

}


/* =========================================================
   LOGIN CARD FOOTER
========================================================= */

.login-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid
        rgba(255, 255, 255, 0.07);

}


.login-card-footer span {

    color: #687789;

    font-size: 9px;

    line-height: 1.5;

}


.login-card-footer span:last-child {

    text-align: right;

}


/* =========================================================
   RETURN TO WEBSITE
========================================================= */

.return-link {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 22px;

    color: #8390A0;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.5px;

    transition: var(--transition);

}


.return-link i {

    font-size: 9px;

    transition: transform var(--transition);

}


.return-link:hover {

    color: var(--white);

}


.return-link:hover i {

    transform: translateX(-4px);

}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {

    outline: 2px solid var(--electric-blue);

    outline-offset: 3px;

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes backgroundReveal {

    from {

        opacity: 0;

        transform: scale(1.10);

    }

    to {

        opacity: 1;

        transform: scale(1.04);

    }

}


@keyframes containerReveal {

    from {

        opacity: 0;

        transform: translateY(22px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


@keyframes brandReveal {

    from {

        opacity: 0;

        transform: translateY(-12px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


@keyframes buttonSpin {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .login-page {

        padding: 35px 20px;

    }


    .login-card {

        padding: 34px 28px;

    }


    .login-card-header {

        margin-bottom: 30px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .login-page {

        padding: 28px 15px;

        align-items: center;

    }


    .login-container {

        max-width: 100%;

    }


    .login-brand {

        margin-bottom: 22px;

    }


    .login-brand-mark {

        width: 48px;

        height: 48px;

        font-size: 15px;

    }


    .login-brand-text strong {

        font-size: 18px;

    }


    .login-brand-text span {

        font-size: 7px;

        letter-spacing: 1.2px;

    }


    .login-card {

        padding: 30px 21px;

    }


    .login-card-header h1 {

        font-size: 28px;

    }


    .login-card-header p {

        font-size: 12px;

    }


    .login-form {

        gap: 19px;

    }


    .input-wrapper input {

        height: 52px;

        font-size: 12px;

    }


    .password-toggle {

        height: 52px;

    }


    .login-submit {

        height: 54px;

    }


    .login-card-footer {

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;

    }


    .login-card-footer span:last-child {

        text-align: left;

    }


    .return-link {

        margin-top: 18px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 350px) {

    .login-page {

        padding-left: 10px;

        padding-right: 10px;

    }


    .login-card {

        padding: 26px 17px;

    }


    .login-brand-text span {

        letter-spacing: 0.9px;

    }


    .login-card-header h1 {

        font-size: 25px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }


    .login-background {

        transform: scale(1.04);

    }

}