﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #ffffff;
    background: #031c15;
}


/* =========================================================
   BACKGROUND
========================================================= */

.login-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: radial-gradient( circle at 20% 20%, rgba(212, 175, 55, 0.10), transparent 30% ), radial-gradient( circle at 80% 80%, rgba(7, 90, 62, 0.30), transparent 35% ), linear-gradient( 135deg, #02150f, #07382a, #021a13 );
}


/* =========================================================
   GLOW
========================================================= */

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .55;
    pointer-events: none;
}

.glow-one {
    width: 350px;
    height: 350px;
    top: -150px;
    left: -100px;
    background: rgba(212, 175, 55, .12);
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-two {
    width: 450px;
    height: 450px;
    right: -180px;
    bottom: -200px;
    background: rgba(11, 102, 72, .25);
    animation: floatGlowTwo 15s infinite alternate ease-in-out;
}

.glow-three {
    width: 180px;
    height: 180px;
    left: 45%;
    top: 15%;
    background: rgba(212, 175, 55, .08);
    filter: blur(25px);
    animation: pulseGlow 5s infinite alternate;
}


@keyframes floatGlow {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(80px, 100px);
    }
}


@keyframes floatGlowTwo {

    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-80px, -60px) scale(1.15);
    }
}


@keyframes pulseGlow {

    from {
        transform: scale(.8);
        opacity: .3;
    }

    to {
        transform: scale(1.3);
        opacity: .7;
    }
}


/* =========================================================
   PARTICLES
========================================================= */

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, .7);
    opacity: .6;
    animation: particleMove 8s infinite ease-in-out;
}

.particle-one {
    top: 20%;
    left: 12%;
}

.particle-two {
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

.particle-three {
    top: 25%;
    right: 15%;
    animation-delay: 4s;
}

.particle-four {
    bottom: 18%;
    right: 25%;
    animation-delay: 1s;
}


@keyframes particleMove {

    0%, 100% {
        transform: translateY(0);
        opacity: .3;
    }

    50% {
        transform: translateY(-30px);
        opacity: .9;
    }
}


/* =========================================================
   WRAPPER
========================================================= */

.login-wrapper {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 42px;
    background: linear-gradient( 145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055) );
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .10);
    animation: cardAppear .8s ease, cardFloat 6s ease-in-out infinite;
}


@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes cardFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* =========================================================
   LOGO
========================================================= */

.login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 35px;
}


.logo-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #d4af37;
    color: #07382a;
    font-size: 27px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, .20);
}


.logo-text strong {
    display: block;
    color: #d4af37;
    font-size: 25px;
    letter-spacing: 3px;
}


.logo-text span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}


.logo-text small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
    letter-spacing: 2px;
}


/* =========================================================
   HEADING
========================================================= */

.login-heading {
    margin-bottom: 30px;
}


    .login-heading > span {
        color: #d4af37;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 2px;
    }


    .login-heading h1 {
        margin: 7px 0;
        font-size: 36px;
        font-weight: 400;
    }


        .login-heading h1 strong {
            color: #d4af37;
        }


    .login-heading p {
        margin: 0;
        color: rgba(255, 255, 255, .60);
        font-size: 14px;
    }


/* =========================================================
   INPUT
========================================================= */

.input-group {
    margin-bottom: 20px;
}


    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, .78);
        font-size: 13px;
        font-weight: 600;
    }


.input-box {
    position: relative;
}


    .input-box > i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #d4af37;
        font-size: 17px;
        z-index: 2;
    }


    .input-box input {
        width: 100%;
        height: 52px;
        padding: 0 45px;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 13px;
        outline: none;
        background: rgba(0, 0, 0, .18);
        color: #ffffff;
        font-size: 14px;
        transition: .3s ease;
    }


        .input-box input::placeholder {
            color: rgba(255, 255, 255, .35);
        }


        .input-box input:focus {
            border-color: rgba(212, 175, 55, .65);
            background: rgba(0, 0, 0, .25);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, .08);
        }


/* =========================================================
   PASSWORD BUTTON
========================================================= */

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
    font-size: 17px;
}


/* =========================================================
   OPTIONS
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 25px;
    font-size: 12px;
}


.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .55);
}


    .remember input {
        accent-color: #d4af37;
    }


.login-options a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient( 135deg, #d4af37, #b88d20 );
    color: #07382a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(212, 175, 55, .20);
    transition: all .35s ease;
}


    .login-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(212, 175, 55, .30);
    }


    .login-button i {
        font-size: 18px;
        transition: transform .3s ease;
    }


    .login-button:hover i {
        transform: translateX(5px);
    }


/* =========================================================
   DIVIDER
========================================================= */

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
}


    .login-divider span {
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, .10);
    }


    .login-divider small {
        color: rgba(255, 255, 255, .35);
        font-size: 9px;
        letter-spacing: 1.5px;
    }


/* =========================================================
   SECURITY
========================================================= */

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}


    .secure-note i {
        color: #d4af37;
        font-size: 15px;
    }


/* =========================================================
   BACK HOME
========================================================= */

.back-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: 12px;
    transition: .3s ease;
}


    .back-home:hover {
        color: #d4af37;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .login-wrapper {
        padding: 30px 18px;
    }

    .login-card {
        max-width: 430px;
        padding: 35px 30px;
        border-radius: 24px;
    }
}

/* =========================================================
   MOBILE LOGIN FIX
========================================================= */

@media (max-width: 480px) {

    .login-wrapper {
        min-height: 100vh;
        height: auto;
        padding: 25px 14px 35px;
        align-items: flex-start;
    }

    .login-card {
        width: 100%;
        max-width: 430px;
        padding: 30px 22px 25px;
        border-radius: 22px;
    }

    .login-logo {
        margin-bottom: 25px;
    }

    .logo-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .logo-text strong {
        font-size: 22px;
    }

    .login-heading h1 {
        font-size: 31px;
    }

    /* Back to Home */
    .back-home {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 18px;
        padding: 8px 0 5px;
        font-size: 12px;
        color: rgba(255,255,255,.65);
    }
}