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

body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    background: url('../images/Sword in the Stone Life Levelling.png');
    background-size: auto 130vh;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.login-container {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.game-title {
    position: fixed;
    top: 2vh;
    left: 50vw;
    transform: translateX(-50%);
    color: #f4f1e8;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    z-index: 10;
    white-space: nowrap;
}

.pedestal-area {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.login-form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.form-group {
    width: 80%;
    margin-bottom: 15px;
}

.username-group {
    position: fixed;
    bottom: 22vh;
    left: 50vw;
    transform: translateX(-50%);
    width: 262.5px;
    max-width: 90vw;
}

.username-group input[type="text"] {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #f4f1e8;
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 100%;
}

.username-group input[type="text"]:focus {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    color: #f4f1e8;
    border-color: rgba(255, 255, 255, 0.8);
}

.username-group input[type="text"]::placeholder {
    color: rgba(244, 241, 232, 0.7);
}

.password-group {
    position: fixed;
    bottom: 10vh;
    left: 50vw;
    transform: translateX(-50%);
    width: 262.5px;
    max-width: 90vw;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 1.35rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #f4f1e8;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(244, 241, 232, 0.7);
    font-style: italic;
}

.play-btn {
    position: fixed;
    bottom: 57.5vh;
    left: 50vw;
    transform: translateX(-50%);
    padding: 0;
    background: none;
    color: #c0c0c0;
    border: none;
    border-radius: 0;
    font-size: 3.75rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.play-btn:hover {
    background: none;
    border: none;
    box-shadow: none;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.1);
}

.play-btn:active {
    transform: translateX(-50%) scale(1.05);
    color: #f0f0f0;
}

.play-text {
    display: block;
}

.error-message {
    position: absolute;
    bottom: 38%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(139, 69, 19, 0.9);
    color: #ffcccc;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 2px solid #8b0000;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.login-help {
    position: fixed;
    bottom: 2vh;
    left: 50vw;
    transform: translateX(-50%);
    text-align: center;
    color: #f4f1e8;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
    padding: 8px 20px;
    border: none;
    width: 90%;
    max-width: 400px;
}

@media (max-width: 768px) {
    body {
        background-size: auto 100vh;
        background-position: 50% center;
    }
    
    .game-title {
        font-size: 2.5rem;
        top: 2%;
    }
    
    .username-group {
        bottom: 17%;
    }
    
    .password-group {
        bottom: 10%;
    }
    
    .play-btn {
        bottom: 50%;
        font-size: 3rem;
        padding: 0;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .login-help {
        font-size: 0.8rem;
        bottom: 3%;
    }
}

@media (max-width: 480px) {
    body {
        background-size: auto 100vh;
        background-position: 52% center;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .form-group {
        width: 85%;
    }
    
    .username-group {
        bottom: 17%;
    }
    
    .password-group {
        bottom: 10%;
    }
    
    .play-btn {
        bottom: 50%;
        font-size: 2.8rem;
        padding: 0;
    }
}
