/* Lapas pamatteksts — violets gradients, centrēts saturs ekrānā */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Veidlapas virsraksts — centrēts, tumšs teksts */
h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
}

/* Veidlapas konteiners — balta kartīte ar ēnu un ienākšanas animāciju */
.form-container {
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.4s ease;
}

/* Ienākšanas animācija — kartīte ieslīd no apakšas */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Veidlapas lauku etiķetes */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

/* Vienots stils teksta, e-pasta un paroles ievades laukiem */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

/* Fokusa stāvoklis — violeta apmale ar ēnas efektu */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Izvēles rūtiņas grupas konteiners */
.checkbox-container {
    margin: 20px 0;
}

/* Izvēles rūtiņas etiķete — horizontāls izkārtojums ar hover efektu */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
}

/* Hover — violeta apmale */
.checkbox-label:hover {
    background: #ecf0f1;
    border-color: #667eea;
}

/* Izvēles rūtiņa — lielāka ar violetu atzīmes krāsu */
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

/* Iesniegšanas poga — violets gradients, pilns platums */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

/* Hover — poga paceļas ar violetu ēnu */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Klikšķis — poga atgriežas sākotnējā pozīcijā */
button:active {
    transform: translateY(0);
}

/* Kļūdas ziņojums ar kratīšanas animāciju */
.error {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
    animation: shake 0.3s ease;
}

/* Kratīšanas animācija — ziņojums svārstās pa kreisi un labi */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Veiksmes ziņojums ar ienākšanas animāciju */
.success {
    color: #27ae60;
    background-color: #d4edda;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
    animation: slideIn 0.3s ease;
}

/* Ziņojums ieslīd no augšas */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Veidlapas kājene ar saiti uz citu lapu (pieteikšanās/reģistrācija) */
.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Kājenes saite — violeta ar hover efektu */
.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.form-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Sveiciena ekrāna konteiners — lielāka balta kartīte */
.welcome-container {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

.welcome-container h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* Sveiciena ekrāna pogas — violets gradients, inline-block */
.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s;
}

/* Hover — poga paceļas ar violetu ēnu */
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Klikšķis — poga atgriežas sākotnējā pozīcijā */
.button:active {
    transform: translateY(0);
}

/* ===================== RESPONSĪVIE STILI ===================== */

/* Mazākais mobilais skats — mazākas atstarpes, virsraksti sašaurināti */
@media(max-width: 480px) {
    /* Kartītes atstāj nelielas sānu atstarpes */
    .form-container {
        padding: 30px 25px;
        margin: 20px;
    }

    .welcome-container {
        padding: 40px 25px;
        margin: 20px;
    }

    h2 {
        font-size: 24px;
    }

    .welcome-container h2 {
        font-size: 28px;
    }
}