* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Literata', serif;
    height: 100vh;
    background: #FFFDF4 url('../images/bg.jpg') repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Literata', serif;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2B2A1E;
    box-shadow: 0 0 0 2px rgba(43, 42, 30, 0.1);
}

.form-group label {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    font-size: 1rem;
    color: #999;
    font-weight: 300;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.85rem;
    color: #2B2A1E;
    font-weight: 400;
}

.form-group input::placeholder {
    color: transparent;
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    background: #2B2A1E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Literata', serif;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background: #1a1914;
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 1rem;
    display: none;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #2B2A1E;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .logo {
        max-width: 150px;
    }
}
