/* Vispārējā atiestatīšana */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Ķermeņa stils */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #6c63ff, #4e54c8);
    color: #333;
    font-size: 16px;
}

/* Konteinera stils */
.container {
    display: flex;
    max-width: 800px;
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
}

/* Animācija parādīšanai */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Kreisā puse - Veidlapa */
.login-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-section form {
    display: flex;
    flex-direction: column;
}

.login-section label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.login-section input[type="email"],
.login-section input[type="password"] {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.login-section input[type="email"]:focus,
.login-section input[type="password"]:focus {
    border-color: #6c63ff;
    background-color: #fff;
}

.login-section button {
    padding: 15px;
    background-color: #6c63ff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.login-section button:hover {
    background-color: #5a54d6;
}

.login-section button.secondary {
    background-color: #ddd;
    color: #333;
}

.login-section button.secondary:hover {
    background-color: #ccc;
}

/* Labā puse - Ilustrācija */
.illustration-section {
    flex: 1;
    background: #f3f4f6;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-section img {
    max-width: 100%;
    height: auto;
}

/* Responsīvais dizains */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 95%;
    }

    .illustration-section {
        display: none;
    }
}

/* Kļūdu ievades stils */
.error {
    border: 1px solid #d80027 !important;
    background-color: #ffe6e6;
}

/* Kļūdu ziņojumu stils */
.error-message {
    color: #d80027;
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 20px;
}