/* css/style.css - Fully Responsive Solo Leveling Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;600;700&display=swap');

/* --- RESET & VARIABLES --- */
:root {
    --primary: #00eaff;    /* Electric Blue */
    --secondary: #0051ff;  /* Deep Blue */
    --bg-dark: #050505;    /* Pitch Black */
    --glass: rgba(10, 20, 30, 0.85);
    --border-glow: 0 0 10px rgba(0, 234, 255, 0.3);
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    font-family: 'Rajdhani', sans-serif;
    margin: 0; padding: 0;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh;
    /* মোবাইল স্ক্রলিং ফিক্স */
    overflow-x: hidden; 
    /* ব্যাকগ্রাউন্ড গ্রেডিয়েন্ট */
    background-image: radial-gradient(circle at 50% 50%, #0a1525 0%, #000000 80%);
}

/* --- BACKGROUND ANIMATION (Cyber Grid) --- */
body::before {
    content: ""; position: absolute;
    width: 200vw; height: 200vh;
    background-image: 
        linear-gradient(rgba(0, 234, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 234, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

/* --- MAIN CONTAINER (The System Window) --- */
.container {
    position: relative;
    width: 90%;             /* মোবাইলে ৯০% জায়গা নেবে */
    max-width: 460px;       /* ডেস্কটপে এর চেয়ে বড় হবে না */
    background: var(--glass);
    border: 1px solid var(--secondary);
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    margin: 20px;
}

/* --- LOGO AREA --- */
.logo-area {
    margin-bottom: 15px;
    display: flex; justify-content: center;
}
.logo-box {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.05);
}
.logo-box img {
    max-width: 120px; /* ডিফল্ট সাইজ */
    height: auto;
    display: block;
    filter: drop-shadow(0 0 5px var(--primary));
}

/* --- TYPOGRAPHY --- */
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: #fff;
    margin: 10px 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary);
}

label {
    display: block; text-align: left;
    color: var(--primary); font-size: 13px;
    font-weight: 700; letter-spacing: 1px;
    margin: 15px 0 5px 0; text-transform: uppercase;
}

/* --- FORM ELEMENTS --- */
input, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-left: 3px solid var(--secondary);
    color: #fff;
    padding: 12px 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; /* মোবাইলে জুম এড়াতে ১৬পিএক্স */
    font-weight: 600;
    border-radius: 4px;
    outline: none;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary);
    background: rgba(0, 20, 40, 0.8);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.15);
}

/* --- BUTTON --- */
button {
    width: 100%; margin-top: 30px; padding: 14px;
    background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.1), transparent);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 18px; font-weight: bold;
    letter-spacing: 2px; cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative; overflow: hidden;
}
button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

/* --- LOGOUT BUTTON --- */
.logout-btn {
    position: absolute; top: 15px; right: 15px;
    color: #ff3333; font-size: 20px;
    background: rgba(0,0,0,0.4);
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 51, 51, 0.3);
    transition: 0.3s; z-index: 10;
}
.logout-btn:hover {
    color: #fff; background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    transform: scale(1.1);
}

/* =========================================
   📱 RESPONSIVE BREAKPOINTS (Mobile & Tab)
   ========================================= */

/* Tablets (iPad, Large Phones) */
@media (max-width: 768px) {
    .container {
        padding: 30px 25px;
        max-width: 400px;
    }
    h1 { font-size: 24px; }
    .logo-box img { max-width: 110px; }
}

/* Mobile Devices (iPhone, Android) */
@media (max-width: 480px) {
    .container {
        width: 92%; /* স্ক্রিনের ৯২% জায়গা নেবে */
        padding: 25px 20px;
        margin-top: 20px;
    }

    h1 {
        font-size: 22px; /* টাইটেল একটু ছোট হবে */
        margin-bottom: 20px;
    }

    .logo-box img {
        max-width: 90px; /* লোগো ছোট হবে */
    }

    .logout-btn {
        width: 30px; height: 30px;
        font-size: 16px;
        top: 10px; right: 10px;
    }

    input, select {
        padding: 10px;
        font-size: 15px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }
}