﻿/* Yleiset asetukset */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 40;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh;  */
	
	background-image: url("bg5.jpg"); /* The image used */
	background-position: center;   /*Center the image */
	background-repeat: no-repeat; /* Do not repeat the image */
	background-size: cover; /* Resize the background image to cover the entire container */
	
	
}

/* Lomakkeen container */
.form-container {
    background-color: white;
		background-color: #ffffffde;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: #333;
}

/* Lomakkeen tyylit */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    gap: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="submit"] {
    padding: 10px;
	padding-top: 25px;
    padding-bottom: 25px;
	
    border: 2px solid #ddd;
    border-radius: 5px;
    width: calc(100% - 22px); /* leveys paddingin ja borderin kanssa */
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #0056b3;
}

input[type="submit"] {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

input[type="submit"]:hover {
    background-color: #004494;
}

/* Virheviestien tyylit */
.error {
    color: #d32f2f;
    background-color: #fce4e4;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #f2b0b0;
    text-align: center;
}

.success {
    color: #388e3c;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #b2fab4;
    text-align: center;
}




			/* Mobiili zoomaus */
		@media (max-width: 600px) {
            
			.form-container {
                padding: 20px;
				margin: 10px;
            }
			
			input[type="text"],
			input[type="password"],
			input[type="email"],
			input[type="submit"] {
			padding: 10px;
			padding-top: 25px;
			padding-bottom: 25px;
	
			border: 2px solid #ddd;
			border-radius: 5px;
			width: calc(100% - 2px); /* leveys paddingin ja borderin kanssa */
			box-sizing: border-box;
}
			
			
			
			}