﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn',sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: white;
    background: radial-gradient( circle at top, #3d0000 0%, #0b0b0b 45%, #000000 100% );
}

/* =========================
   GLOBAL
========================= */

a {
    text-decoration: none;
}

button {
    font-family: 'Vazirmatn',sans-serif;
}

input {
    font-family: 'Vazirmatn',sans-serif;
}

/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

    .hero::before {
        content: "";
        position: absolute;
        width: 700px;
        height: 700px;
        background: radial-gradient( circle, rgba(255,0,0,.18), transparent 70% );
        animation: glowMove 6s infinite alternate;
    }

@keyframes glowMove {

    from {
        transform: translateY(-30px) scale(1);
    }

    to {
        transform: translateY(30px) scale(1.1);
    }
}

.content {
    text-align: center;
    position: relative;
    z-index: 5;
}

    .content h1 {
        font-size: 88px;
        font-weight: 900;
        margin-bottom: 20px;
        color: white;
        text-shadow: 0 0 10px rgba(255,255,255,.4), 0 0 30px rgba(255,0,0,.3);
    }

    .content p {
        font-size: 24px;
        color: #cfcfcf;
        margin-bottom: 45px;
    }

/* =========================
   BUTTONS
========================= */

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-red,
.btn-dark {
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 18px;
    transition: .35s;
}

.btn-red {
    background: linear-gradient( 45deg, #ff2746, #8b0000 );
    color: white;
    box-shadow: 0 10px 25px rgba(255,0,0,.25);
}

    .btn-red:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(255,0,0,.45);
    }

.btn-dark {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: white;
    backdrop-filter: blur(10px);
}

    .btn-dark:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255,255,255,.08);
    }

/* =========================
   LOGIN PAGE
========================= */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.side-shape {
    position: absolute;
    height: 100%;
    opacity: .06;
    pointer-events: none;
}

.left-shape {
    left: 0;
}

.right-shape {
    right: 0;
}

.login-box {
    width: 430px;
    max-width: 100%;
    padding: 45px;
    border-radius: 30px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 50px rgba(255,0,0,.18);
    position: relative;
    z-index: 5;
}

    .login-box h2 {
        text-align: center;
        font-size: 42px;
        margin-bottom: 10px;
    }

.login-subtitle {
    text-align: center;
    color: #bbb;
    margin-bottom: 35px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    height: 58px;
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 0 20px;
    background: rgba(255,255,255,.07);
    color: white;
    font-size: 16px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
}

.login-box button {
    height: 58px;
    border: none;
    border-radius: 15px;
    background: linear-gradient( 45deg, #ff2746, #850000 );
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
}

    .login-box button:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(255,0,0,.35);
    }

.success-box {
    background: rgba(0,255,120,.12);
    border: 1px solid rgba(0,255,120,.3);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 20px;
    text-align: center;
    color: #8dffb1;
}

/* =========================
   QR GENERATOR
========================= */

.qr-generator-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.qr-generator-box {
    width: 430px;
    max-width: 100%;
    background: rgba(15,15,15,.82);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 45px;
    position: relative;
    z-index: 5;
    box-shadow: 0 0 40px rgba(255,0,0,.12), 0 0 100px rgba(255,0,0,.08);
}

.top-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255,0,0,.12);
    color: #ff4d4d;
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.qr-generator-box h1 {
    color: white;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
}

.subtitle {
    color: #bdbdbd;
    margin-bottom: 35px;
    line-height: 2;
}

.input-group {
    margin-bottom: 24px;
}

    .input-group label {
        display: block;
        margin-bottom: 10px;
        color: #ddd;
        font-size: 14px;
    }

    .input-group input {
        width: 100%;
        height: 58px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,.08);
        background: rgba(255,255,255,.04);
        color: white;
        font-size: 18px;
        padding: 0 18px;
        outline: none;
        transition: .3s;
    }

        .input-group input:focus {
            border-color: #ff2b2b;
            box-shadow: 0 0 25px rgba(255,0,0,.25);
        }

.qr-generator-box button {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 20px;
    background: linear-gradient( 135deg, #ff1f1f, #b30000 );
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .35s;
    margin-top: 10px;
}

    .qr-generator-box button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(255,0,0,.35);
    }

/* =========================
   TABLE SCROLL FIX
========================= */

.tableWrap {
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: 75vh;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    .content h1 {
        font-size: 54px;
    }

    .content p {
        font-size: 18px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-red,
    .btn-dark {
        width: 100%;
        max-width: 320px;
    }

    .login-box,
    .qr-generator-box {
        width: 100%;
        padding: 30px;
    }
}
