/* Grundinställningar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(
            circle at top,
            #f5f5f5 0%,
            #e3e3e3 60%,
            #d6d6d6 100%
        );
}


/* Huvudcontainer som ramar in allt */
.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Rundad inloggningsbox med skugga */
.login-box {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
    overflow: hidden; /* så bilden och formuläret rundas samtidigt */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    background: #fff;
    max-width: 900px;
    width: 100%;
}

/* Bilden */
.login-box img {
    width: 50%;
    object-fit: cover;
}
.login-error {
    width: 100%;
    padding: 12px 15px;
    margin-top: 20px;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    background-color: #fff5f5;
    color: #d93025;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Formuläret */
form {
    width: 50%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

form input[type="email"],
form input[type="password"] {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

form input[type="email"]:focus,
form input[type="password"]:focus {
    border-color: #ff6600;
    outline: none;
}

form button {
    padding: 12px;
    background-color: #ff6600;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #e55b00;
    transform: scale(1.02);
}

/* Footer alltid längst ner */
.footer-text {
    text-align: center;
    font-size: 10px;
    color: #555;
    padding: 10px 0;
    position: relative;
    bottom: 0;
}

/* Responsiv design */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
    }

    .login-box img,
    form {
        width: 100%;
    }

    form {
        padding: 30px 20px;
    }

    form input[type="email"],
    form input[type="password"],
    form button {
        font-size: 14px;
    }
}
