* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #05070a;
    color: #e6edf3;
    font-family: "Courier New", monospace;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* Background */

.background {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(0, 255, 170, 0.08),
            transparent 45%
        ),
        #05070a;

    z-index: -2;
}

.grid {
    position: absolute;
    inset: -50%;

    background-image:
        linear-gradient(
            rgba(0, 255, 170, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 255, 170, 0.04) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    transform: perspective(500px) rotateX(60deg);
}

/* Login */

.login-container {
    width: 100%;
    max-width: 430px;
    padding: 20px;
}

.login-card {
    padding: 40px;

    background: rgba(10, 15, 20, 0.94);

    border: 1px solid rgba(0, 255, 170, 0.35);

    box-shadow:
        0 0 40px rgba(0, 255, 170, 0.08),
        inset 0 0 30px rgba(0, 255, 170, 0.02);

    border-radius: 8px;
}

/* Logo */

.logo {
    width: 55px;
    height: 55px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #00ffaa;
    border-radius: 6px;

    color: #00ffaa;
    font-size: 24px;

    box-shadow:
        0 0 20px rgba(0, 255, 170, 0.15);
}

h1 {
    text-align: center;

    color: #00ffaa;

    font-size: 30px;
    letter-spacing: 3px;

    margin-bottom: 8px;
}

.subtitle {
    text-align: center;

    color: #68747f;

    font-size: 13px;

    margin-bottom: 35px;
}

/* Inputs */

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

label {
    display: block;

    margin-bottom: 8px;

    color: #8996a3;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;

    padding: 14px;

    background: #070b0f;

    border: 1px solid #26313a;
    border-radius: 4px;

    outline: none;

    color: #e6edf3;

    font-family: inherit;
    font-size: 14px;

    transition: 0.2s;
}

input:focus {
    border-color: #00ffaa;

    box-shadow:
        0 0 0 2px rgba(0, 255, 170, 0.08);
}

input::placeholder {
    color: #3d4852;
}

/* Button */

button {
    width: 100%;

    margin-top: 10px;

    padding: 14px;

    border: 1px solid #00ffaa;
    border-radius: 4px;

    background: rgba(0, 255, 170, 0.08);

    color: #00ffaa;

    font-family: inherit;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    background: #00ffaa;
    color: #05070a;

    box-shadow:
        0 0 25px rgba(0, 255, 170, 0.25);
}

button:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Messages */

.message {
    min-height: 22px;

    margin-top: 20px;

    text-align: center;

    font-size: 13px;
}

.message.error {
    color: #ff5577;
}

.message.success {
    color: #00ffaa;
}

/* Status */

.hint {
    margin-top: 30px;

    text-align: center;

    color: #3d4852;

    font-size: 10px;
    letter-spacing: 1px;
}

.hint span {
    color: #00ffaa;
}

/* Mobile */

@media (max-width: 500px) {

    .login-card {
        padding: 30px 22px;
    }

    h1 {
        font-size: 25px;
    }
}
