/**
 * Projekts: Studentu darbu iesniegšanas un vērtēšanas sistēma
 * Programma: style.css (Sistēmas globālie stili)
 * Versija: 1.0.0
 * Autors: Jānis Bērziņš
 * Datums: 2026-05-18
 * Apraksts: Definē visas sistēmas vizuālo izskatu, izmantojot modernas krāsas,
 *           responsīvu Flexbox izkārtojumu.
 */

/* 1. PAMATA IESTATĪJUMI */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 2. AUTORIZĀCIJAS KONTEINERS */
.auth-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
}

.auth-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

/* Flexbox izkārtojums abām formām */
.auth-box-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.auth-box {
    flex: 1;
    min-width: 280px;
}

.auth-box h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Vertikālais dalītājs starp formām */
.auth-divider {
    width: 1px;
    background-color: #e0e0e0;
    align-self: stretch;
}

/* 3. FORMAS ELEMENTI */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

/* Fokusa efekts ievades laukiem labākai lietojamībai */
.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 4. POGAS */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2ecc71;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

/* 5. PAZIŅOJUMI (Alerts) */
.alert {
    padding: 12px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 6. RESPONSĪVAIS DIZAINS (Pielāgošanās telefoniem) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .auth-box-wrapper {
        flex-direction: column;
    }
    .auth-divider {
        height: 1px;
        width: 100%;
        margin: 20px 0;
    }
    .auth-container {
        padding: 20px;
    }
}