body { 
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #333;
    font-family: 'nokiafc22', monospace;
}

canvas {
    image-rendering: pixelated;
    position: relative;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#auth-container {
    position: relative;
    width: 480px;
    background-color: rgba(47, 79, 79, 0.85);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: white;
    overflow: hidden;
    transition: height 0.3s ease;
    border: 2px solid rgba(152, 251, 152, 0.3);
}

#auth-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.confirm-password {
    display: none;
    height: 0;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: #c2f0c2;
}

.auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-bottom: 2px solid rgba(152, 251, 152, 0.5);
    padding: 10px;
    color: white;
    box-sizing: border-box;
    outline: none;
    font-family: 'nokiafc22', monospace;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    border-color: rgba(152, 251, 152, 0.9);
    background: rgba(0, 0, 0, 0.3);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.2) inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    transition: background-color 5000s;
}

input:-webkit-contacts-auto-fill-button,
input:-webkit-credentials-auto-fill-button,
input:-webkit-calendar-picker-indicator {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

input:-webkit-autofill {
    -webkit-background-clip: text !important;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.auth-button {
    background: rgba(34, 139, 34, 0.4);
    border: 2px solid rgba(152, 251, 152, 0.7);
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'nokiafc22', monospace;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-align: center;
}

.auth-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(152, 251, 152, 0.2);
    transition: all 0.3s ease;
}

.auth-button:hover:before {
    left: 0;
}

.auth-button:active {
    transform: scale(0.97);
    background: rgba(34, 139, 34, 0.6);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.discord-container {
    text-align: center;
}

.discord-logo {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.discord-logo:hover {
    transform: scale(1.1);
}

.mode-switch {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #c2f0c2;
}

.mode-link {
    color: rgba(255, 255, 220, 0.9);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.mode-link:hover {
    color: white;
    text-shadow: 0 0 5px rgba(152, 251, 152, 0.7);
}

@font-face {
    font-family: 'm5x7';
    src: url('/fonts/m5x7.ttf') format('truetype');
}

@font-face {
    font-family: 'Early GameBoy';
    src: url('/fonts/Early GameBoy.ttf') format('truetype');
}

@font-face {
    font-family: 'nokiafc22';
    src: url('/fonts/nokiafc22.ttf') format('truetype');
}