:root {
    --primary-green: #00ff88;
    --primary-blue: #00ccff;
    --dark-bg: #050a14;
    --panel-bg: rgba(10, 20, 30, 0.85);
    --text-color: #e0e0e0;
    --neon-glow-green: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
    --neon-glow-blue: 0 0 10px rgba(0, 204, 255, 0.5), 0 0 20px rgba(0, 204, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a1525 0%, #000000 100%);
}

/* Background Animation Effect */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 136, 0.05) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 204, 255, 0.05) 50%, transparent 52%);
    background-size: 60px 60px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.login-container {
    width: 100%;
    max-width: 450px;
    height: 480px;
    /* Fixed height under 500px */
    max-height: 500px;
    padding: 2.5rem 2rem;
    background: var(--panel-bg);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Moving Perimeter Border Animation */
.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--primary-blue),
            var(--primary-green),
            transparent);
    animation: rotateBorder 6s linear infinite;
    top: -50%;
    left: -50%;
    z-index: -2;
}

/* Inner mask to create the border look */
.login-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Border thickness */
    background: var(--dark-bg);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.95;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    position: relative;
    /* Animated Gradient Text */
    background: linear-gradient(120deg,
            #0066ff 0%,
            #ffffff 25%,
            #00ccff 50%,
            #ffffff 75%,
            #0066ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    /* Soft neon glow only, no white edges */
    filter: drop-shadow(0 0 10px rgba(68, 153, 255, 0.3));
    margin-bottom: 0.1rem;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.logo-text .highlight {
    /* Highlight now inherits the animated gradient from parent or uses its own */
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Forms */
.login-forms {
    flex-grow: 1;
}

.login-form {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
}

.internal-btn {
    background: linear-gradient(90deg, var(--primary-green), #00cc88);
}

.internal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.5);
}

.external-btn {
    background: linear-gradient(90deg, var(--primary-blue), #0088cc);
}

.external-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 204, 255, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    color: #888;
}

/* Footer */
.login-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #444;
}