/* Reset och grundläggande styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 50%, #dc143c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

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

input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

input[type="password"]:focus {
    border-color: #ffd700;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.login-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #8b0000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #daa520 100%);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

/* Mobil-optimering */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .login-form {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    input[type="password"], .login-btn {
        padding: 12px 15px;
        font-size: 16px; /* Förhindrar zoom på iOS */
    }
}

/* Extra små skärmar */
@media (max-width: 320px) {
    .login-form {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
}

/* Landskap-orientering på mobiler */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}