﻿/* =========================================================
   MAHADEV COLLECTION
   LOGIN PAGE
   Mobile App Style
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #020617 0%,
            #0f172a 42%,
            #172554 72%,
            #1e1b4b 100%
        );

    min-height: 100vh;

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND SCENE
   ========================================================= */

.background-scene {

    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   GRADIENT ORBS
   ========================================================= */

.gradient-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(5px);

    opacity: .45;

    animation:
        orbFloat 13s ease-in-out infinite;
}


.orb-one {

    width: 330px;
    height: 330px;

    left: -110px;
    top: -100px;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,.65),
            transparent 68%
        );
}


.orb-two {

    width: 390px;
    height: 390px;

    right: -150px;
    top: 12%;

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.55),
            transparent 68%
        );

    animation-delay: -4s;
}


.orb-three {

    width: 360px;
    height: 360px;

    left: 30%;
    bottom: -220px;

    background:
        radial-gradient(
            circle,
            rgba(6,182,212,.35),
            transparent 68%
        );

    animation-delay: -8s;
}


@keyframes orbFloat {

    0%,
    100% {
        transform:
            translate3d(0,0,0)
            scale(1);
    }

    50% {
        transform:
            translate3d(25px,-25px,0)
            scale(1.08);
    }
}


/* =========================================================
   GRID
   ========================================================= */

.grid-lines {

    position: absolute;

    inset: 0;

    opacity: .09;

    background-image:

        linear-gradient(
            rgba(255,255,255,.15) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.15) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );
}


/* =========================================================
   FLOATING DOTS
   ========================================================= */

.floating-dot {

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(255,255,255,.7);

    box-shadow:
        0 0 15px rgba(255,255,255,.7);

    animation:
        dotFloat 6s ease-in-out infinite;
}


.dot-one {
    left: 15%;
    top: 20%;
}


.dot-two {
    right: 20%;
    top: 28%;
    animation-delay: -2s;
}


.dot-three {
    left: 22%;
    bottom: 24%;
    animation-delay: -4s;
}


.dot-four {
    right: 13%;
    bottom: 20%;
    animation-delay: -1s;
}


@keyframes dotFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: .3;
    }

    50% {
        transform: translateY(-18px);
        opacity: .9;
    }
}


/* =========================================================
   MAIN APP CONTAINER
   ========================================================= */

.app-container {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 470px;

    min-height: 100vh;

    margin: auto;

    padding:
        42px
        22px
        25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   PART 1 — HERO
   ========================================================= */

.hero-section {

    position: relative;

    text-align: center;

    width: 100%;

    margin-bottom: 27px;

    animation:
        heroEnter .8s cubic-bezier(.2,.8,.2,1);
}


@keyframes heroEnter {

    from {
        opacity: 0;
        transform:
            translateY(-25px)
            scale(.96);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   LOGO
   ========================================================= */

.brand-logo {

    position: relative;

    width: 82px;
    height: 82px;

    margin:
        0
        auto
        16px;
}


.logo-glow {

    position: absolute;

    inset: -12px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.42),
            transparent 68%
        );

    animation:
        logoPulse 3s ease-in-out infinite;
}


@keyframes logoPulse {

    0%,
    100% {
        transform: scale(.95);
        opacity: .55;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}


.logo-icon {

    position: relative;

    width: 82px;
    height: 82px;

    border-radius: 26px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #4f46e5
        );

    border:
        1px solid
        rgba(255,255,255,.25);

    box-shadow:

        0 18px 45px
        rgba(37,99,235,.35),

        inset 0 1px 1px
        rgba(255,255,255,.3);

    animation:
        logoFloat 4s ease-in-out infinite;
}


@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


.logo-icon svg {

    width: 43px;
    height: 43px;

    fill: none;

    stroke: white;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.brand-name {

    font-size: 29px;

    font-weight: 800;

    letter-spacing: -.8px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #bfdbfe,
            #ffffff
        );

    background-size: 200% auto;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        textShine 5s linear infinite;
}


@keyframes textShine {

    to {
        background-position:
            200% center;
    }
}


.brand-tagline {

    margin-top: 6px;

    color:
        rgba(255,255,255,.58);

    font-size: 13px;

    letter-spacing: .2px;
}


/* =========================================================
   COLLECTION LINE
   ========================================================= */

.collection-line {

    display: flex;

    justify-content: center;

    gap: 5px;

    margin-top: 13px;
}


.collection-line span {

    display: block;

    height: 3px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #6366f1
        );

    animation:
        lineWave 1.5s ease-in-out infinite;
}


.collection-line span:nth-child(1) {
    width: 10px;
}


.collection-line span:nth-child(2) {

    width: 30px;

    animation-delay: .15s;
}


.collection-line span:nth-child(3) {

    width: 10px;

    animation-delay: .3s;
}


@keyframes lineWave {

    0%,
    100% {
        opacity: .4;
        transform: scaleX(.8);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.15);
    }
}


/* =========================================================
   FLOATING INFO CARDS
   ========================================================= */

.floating-info {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        8px
        11px;

    border-radius: 13px;

    background:
        rgba(255,255,255,.08);

    border:
        1px solid
        rgba(255,255,255,.12);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.18);

    animation:
        infoFloat 5s ease-in-out infinite;
}


.info-one {

    left: -2px;

    top: 45px;
}


.info-two {

    right: -2px;

    top: 5px;

    animation-delay: -2s;
}


@keyframes infoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


.floating-info strong {

    display: block;

    font-size: 10px;

    color: white;
}


.floating-info small {

    display: block;

    font-size: 8px;

    color:
        rgba(255,255,255,.55);
}


.mini-icon {

    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    color: white;

    font-size: 13px;

    font-weight: 800;

    background:
        rgba(59,130,246,.35);
}


.mini-icon.green {

    background:
        rgba(16,185,129,.3);
}


/* =========================================================
   PART 2 — LOGIN
   ========================================================= */

.login-section {

    width: 100%;

    animation:
        cardEnter .8s
        .15s
        both
        cubic-bezier(.2,.8,.2,1);
}


@keyframes cardEnter {

    from {
        opacity: 0;

        transform:
            translateY(35px)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.login-card {

    position: relative;

    overflow: hidden;

    width: 100%;

    padding:
        30px 27px 25px;

    border-radius: 27px;

    background:
        rgba(255,255,255,.96);

    border:
        1px solid
        rgba(255,255,255,.6);

    box-shadow:

        0 35px 80px
        rgba(0,0,0,.30),

        0 10px 30px
        rgba(0,0,0,.12);
}


.login-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #6366f1,
            #06b6d4
        );

    background-size: 200% auto;

    animation:
        gradientMove 4s linear infinite;
}


@keyframes gradientMove {

    to {
        background-position: 200% center;
    }
}


.card-shine {

    position: absolute;

    width: 200px;
    height: 200px;

    top: -150px;
    right: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.08),
            transparent 70%
        );
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {

    margin-bottom: 23px;
}


.welcome-badge {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        6px
        10px;

    border-radius: 20px;

    background:
        #eff6ff;

    color:
        #2563eb;

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 10px;
}


.pulse-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34,197,94,.12);

    animation:
        pulse 2s infinite;
}


@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(34,197,94,.35);
    }

    70% {
        box-shadow:
            0 0 0 6px
            rgba(34,197,94,0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(34,197,94,0);
    }
}


.login-header h1 {

    color: #111827;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -.6px;
}


.login-header p {

    color: #6b7280;

    font-size: 13px;

    margin-top: 5px;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-message {

    display: none;

    width: 100%;

    margin-bottom: 16px;

    padding:
        11px
        13px;

    border-radius: 12px;

    background:
        #fef2f2;

    border:
        1px solid
        #fecaca;

    color:
        #b91c1c;

    font-size: 12px;

    line-height: 1.4;

    animation:
        messageEnter .25s ease;
}


.login-message.show {
    display: block;
}


@keyframes messageEnter {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   INPUT
   ========================================================= */

.input-group {

    margin-bottom: 17px;
}


.input-group label {

    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 12px;

    font-weight: 700;
}


.input-box {

    position: relative;

    height: 54px;

    display: flex;

    align-items: center;

    border:
        1.5px solid
        #e5e7eb;

    border-radius: 15px;

    background:
        #f8fafc;

    transition:
        .22s ease;
}


.input-box:hover {

    background:
        #ffffff;

    border-color:
        #d1d5db;
}


.input-box.focused {

    background:
        #ffffff;

    border-color:
        #3b82f6;

    box-shadow:
        0 0 0 4px
        rgba(59,130,246,.10);

    transform:
        translateY(-1px);
}


.input-icon {

    position: absolute;

    left: 15px;

    width: 20px;
    height: 20px;

    color:
        #64748b;

    pointer-events: none;
}


.input-icon svg {

    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.login-input {

    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background:
        transparent;

    color:
        #111827;

    font-size: 14px;

    padding:
        0 45px;
}


.login-input::placeholder {

    color:
        #9ca3af;
}


.password-input {

    padding-right: 45px;
}


/* =========================================================
   PASSWORD BUTTON
   ========================================================= */

.password-button {

    position: absolute;

    right: 9px;

    width: 35px;
    height: 35px;

    border: none;

    background:
        transparent;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color:
        #64748b;

    transition: .2s ease;
}


.password-button:hover {

    background:
        #eef2ff;

    color:
        #2563eb;
}


.password-button svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {

    position: relative;

    overflow: hidden;

    width: 100%;

    height: 55px;

    margin-top: 3px;

    border: none;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(37,99,235,.28);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.login-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 17px 35px
        rgba(37,99,235,.36);
}


.login-button:active {

    transform:
        translateY(0);
}


/* Animated shine */

.login-button::before {

    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.22),
            transparent
        );

    transform: skewX(-20deg);

    animation:
        buttonShine 3.5s infinite;
}


@keyframes buttonShine {

    0% {
        left: -100%;
    }

    45%,
    100% {
        left: 140%;
    }
}


/* =========================================================
   LOADING
   ========================================================= */

.login-button.loading {

    cursor:
        wait;

    opacity:
        .9;

    animation:
        loadingPulse 1.2s infinite;
}


@keyframes loadingPulse {

    50% {
        filter:
            brightness(1.08);
    }
}


/* =========================================================
   SECURITY
   ========================================================= */

.security-area {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color:
        #9ca3af;

    font-size: 10px;
}


.security-icon {

    width: 16px;
    height: 16px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.security-icon svg {

    width: 100%;
    height: 100%;

    fill: none;

    stroke:
        #94a3b8;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   PART 4 — FEATURES
   ========================================================= */

.feature-section {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;

    margin-top: 22px;

    animation:
        featureEnter .8s
        .3s
        both;
}


@keyframes featureEnter {

    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


.feature-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 7px;

    color:
        rgba(255,255,255,.55);

    font-size: 9px;

    line-height: 1.3;
}


.feature-icon {

    width: 39px;
    height: 39px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.12);

    animation:
        featureFloat 4s ease-in-out infinite;
}


.feature-item:nth-child(2)
.feature-icon {
    animation-delay: -.8s;
}


.feature-item:nth-child(3)
.feature-icon {
    animation-delay: -1.6s;
}


.feature-item:nth-child(4)
.feature-icon {
    animation-delay: -2.4s;
}


@keyframes featureFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


.feature-icon svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.feature-icon.blue {

    color: #60a5fa;

    background:
        rgba(37,99,235,.15);
}


.feature-icon.purple {

    color: #a78bfa;

    background:
        rgba(124,58,237,.15);
}


.feature-icon.cyan {

    color: #22d3ee;

    background:
        rgba(6,182,212,.15);
}


.feature-icon.green {

    color: #4ade80;

    background:
        rgba(16,185,129,.15);
}


/* =========================================================
   FOOTER
   ========================================================= */

.app-footer {

    margin-top: 22px;

    text-align: center;

    color:
        rgba(255,255,255,.30);

    font-size: 9px;

    line-height: 1.6;
}


.app-footer span {

    margin:
        0 4px;

    color:
        rgba(255,255,255,.18);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .app-container {

        padding:
            28px
            15px
            18px;
    }


    .hero-section {

        margin-bottom: 21px;
    }


    .brand-logo,
    .logo-icon {

        width: 70px;
        height: 70px;

        border-radius: 22px;
    }


    .logo-icon svg {

        width: 37px;
        height: 37px;
    }


    .brand-name {

        font-size: 24px;
    }


    .brand-tagline {

        font-size: 11px;
    }


    .floating-info {

        transform:
            scale(.85);
    }


    .info-one {

        left: -12px;
    }


    .info-two {

        right: -12px;
    }


    .login-card {

        padding:
            25px
            20px
            22px;

        border-radius: 23px;
    }


    .login-header h1 {

        font-size: 22px;
    }


    .login-header p {

        font-size: 12px;
    }


    .input-box {

        height: 52px;
    }


    .login-button {

        height: 53px;
    }


    .feature-section {

        gap: 3px;

        margin-top: 18px;
    }


    .feature-icon {

        width: 35px;
        height: 35px;
    }


    .feature-icon svg {

        width: 17px;
        height: 17px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .app-container {

        padding-top: 20px;
    }


    .brand-logo,
    .logo-icon {

        width: 62px;
        height: 62px;
    }


    .brand-name {

        font-size: 22px;
    }


    .login-card {

        padding:
            22px
            17px
            20px;
    }


    .floating-info {

        display: none;
    }


    .feature-item {

        font-size: 8px;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;
    }
}