﻿/* ================== GLOBAL ================== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background:
        radial-gradient(circle at top, #103b2c 0%, #07140f 100%);

    color: #d8ffe9;
}

/* ================== MENU ================== */
.menu-icon {
    display: none;
    width: 100%;
    padding: 14px;

    border: none;
    cursor: pointer;

    font-size: 26px;
    font-weight: bold;

    color: #eafff4;

    background:
        linear-gradient(to bottom, #16a34a, #0b5d2a);

    box-shadow:
        0 0 15px rgba(34,197,94,0.4);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(to bottom, #0f5132, #052e16);

    border-bottom:
        2px solid #4ade80;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.6);

    position: relative;
    z-index: 20;
}

.navbar a {
    position: relative;

    color: #dcffe9;
    text-decoration: none;

    padding: 16px 28px;

    font-weight: bold;
    letter-spacing: 0.5px;

    transition: all 0.3s;
}

.navbar a::after {
    content: "";

    position: absolute;

    left: 10%;
    bottom: 8px;

    width: 0;
    height: 2px;

    background: #4ade80;

    transition: width 0.3s;
}

.navbar a:hover {
    color: #ffffff;

    background:
        linear-gradient(to bottom, #22c55e, #15803d);
}

.navbar a:hover::after {
    width: 80%;
}

/* ================== CONTAINER ================== */
.container {
    position: relative;
    overflow: hidden;

    max-width: 540px;

    margin: 45px auto;
    padding: 30px;

    border-radius: 16px;

    background:
        linear-gradient(to bottom, #0b1f16, #06110c);

    border:
        2px solid #22c55e;

    box-shadow:
        0 0 30px rgba(34,197,94,0.18),
        inset 0 0 20px rgba(0,0,0,0.8);

    z-index: 5;
}

/* ================== GLOW EFFECT ================== */
.container::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 16px;

    background:
        linear-gradient(
            45deg,
            transparent 30%,
            rgba(74,222,128,0.08),
            transparent 70%
        );

    animation: glowmove 5s linear infinite;

    z-index: 0;
}

@keyframes glowmove {

    0% {
        transform: translateX(-50px);
    }

    100% {
        transform: translateX(50px);
    }
}

/* ================== TITLE ================== */
h1 {
    text-align: center;

    margin-bottom: 28px;

    font-size: 2em;

    color: #4ade80;

    text-shadow:
        0 0 15px rgba(74,222,128,0.5);
}

h3 {
    text-align: center;

    margin: 20px 0 10px;

    color: #86efac;
}

/* ================== TABLE ================== */
table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 12px 0;
}

td:first-child {
    width: 38%;

    font-weight: bold;

    color: #86efac;
}

/* ================== INPUT ================== */
input[type="text"],
input[type="password"] {
    width: 100%;

    padding: 12px;

    border-radius: 10px;

    border:
        1px solid #22c55e;

    background:
        rgba(0,0,0,0.35);

    color: #dcffe9;

    box-sizing: border-box;

    transition: all 0.3s;

    position: relative;
    z-index: 10;
}

input::placeholder {
    color: #7dd3a7;
}

input:focus {
    outline: none;

    border-color: #86efac;

    box-shadow:
        0 0 12px rgba(74,222,128,0.45);
}

/* ================== CAPTCHA ================== */
.captcha {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 10px 0;
}

.captcha img {
    border-radius: 8px;

    border:
        2px solid #22c55e;

    background: #ffffff;

    box-shadow:
        0 0 10px rgba(34,197,94,0.35);
}

.refresh-btn {
    padding: 8px 12px;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    font-size: 18px;
    font-weight: bold;

    color: #ffffff;

    background:
        linear-gradient(to bottom, #22c55e, #15803d);

    transition: all 0.3s;
}

.refresh-btn:hover {
    transform: rotate(180deg);

    box-shadow:
        0 0 12px rgba(34,197,94,0.5);
}

/* ================== BUTTON ================== */
input[type="submit"] {
    width: 100%;

    padding: 15px;

    margin-top: 25px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    font-size: 1.1em;
    font-weight: bold;

    color: #ffffff;

    background:
        linear-gradient(to bottom, #22c55e, #15803d);

    transition: all 0.3s;

    position: relative;
    z-index: 10;
}

input[type="submit"]:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(to bottom, #4ade80, #16a34a);

    box-shadow:
        0 0 18px rgba(74,222,128,0.5);
}

/* ================== FOOTER ================== */
footer {
    margin-top: 50px;
    padding: 22px;

    text-align: center;

    color: #86efac;

    background:
        linear-gradient(to bottom, #052e16, #03150b);

    border-top:
        2px solid #22c55e;
}

footer a {
    color: #bbf7d0;
}

/* ================== MOBILE ================== */
@media (max-width: 768px) {

    .menu-icon {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
    }

    .navbar.show {
        display: flex;
    }

    .container {
        margin: 20px;
        padding: 22px;
    }

    .captcha {
        flex-direction: column;
        align-items: flex-start;
    }
}