/* style.css – modern login med gradient-knapp och animation */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 5px;
    margin-bottom: 25px;
}

h2 {
    margin-bottom: 20px;
}

/* Flexbox layout för formulär */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

input[type="text"], input[type="password"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

input[type="text"]:hover, input[type="password"]:hover {
    border-color: #3498db;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Gradient-knapp med hover-animation */
button.login-btn {
    padding: 12px 15px;
    background: linear-gradient(135deg, #3498db, #00c6ff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

button.login-btn:hover {
    background: linear-gradient(135deg, #2980b9, #00aaff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

button.login-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

p {
    margin-top: 15px;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

.error {
    color: #c0392b;
    font-weight: bold;
}

.success {
    color: #27ae60;
    font-weight: bold;
}

/* Responsivitet */
@media (max-width: 400px) {
    .container {
        padding: 20px;
    }

    h2 {
        font-size: 1.2em;
    }

    input[type="text"], input[type="password"], button.login-btn {
        font-size: 14px;
    }
}

/* --- Notiser --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    font-size: 15px;
}

.notification.error {
    background: #e74c3c;
}

.notification.visible {
    opacity: 1;
    transform: translateY(0);
}
