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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('./img/background.jpg') center/cover no-repeat fixed;
    height: 100svh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    overflow: hidden;
}

.container {
    margin: auto;
    border-radius: 15px;
    padding: 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    overflow: auto;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.login-header h2 {
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(138, 43, 226, 0.5);
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #dda0dd;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.form-group input {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group input:active {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 10px 2px rgba(138, 43, 226, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.login-btn {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(90deg, #8a2be2, #6a0dad);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.login-btn:hover,
.login-btn:focus {
    outline: none;
    transform: scale(1.05);
    box-shadow: 0 0px 10px rgba(138, 43, 226, 0.5);
    background: linear-gradient(90deg, #9b3cff, #8a2be2);
}

.error-message {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ffcccc;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #b8b5d1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    border-top: 1px solid rgba(138, 43, 226, 0.5);
    padding-top: 1rem;
}

.back-link:hover {
    color: #dda0dd;
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        max-height: 90vh;
        padding: 1rem;
    }
}