/* Registration / password flow - styled to match the main site (livas.lv) */
@import "preloader.css";

.reg-page {
    --reg-accent: #086AD8;
    --reg-accent-dark: #0a5ab3;
    --reg-heading: #1e2057;
    --reg-border: #e2e8f2;
    --reg-muted: #6b7280;
    font-family: "Open Sans", sans-serif;
    background: linear-gradient(180deg, #f4f8fd 0%, #eaf1fb 100%);
    padding: 32px 0 72px;
    min-height: calc(100vh - 120px);
}

/* keep the ajax spinner centered inside the card */
.reg-card .loading_ajax { min-height: 320px; display: flex; align-items: center; justify-content: center; }

/* --- top toolbar: back link + language switch --- */
.reg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto 26px;
    flex-wrap: wrap;
}
.reg-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--reg-accent);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.reg-back:hover { color: var(--reg-accent-dark); transform: translateX(-2px); }
.reg-back i { font-size: 18px; }

.reg-lang { display: inline-flex; align-items: center; gap: 18px; }
.reg-lang a {
    position: relative;
    color: var(--reg-muted);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 4px;
    transition: color .2s ease;
}
.reg-lang a:hover { color: var(--reg-accent); }
.reg-lang a.is-active { color: var(--reg-accent); }
.reg-lang a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--reg-accent);
    border-radius: 2px;
}

/* --- card --- */
.reg-card {
    background: #fff;
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 48px 44px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(20, 43, 92, .12);
}

.reg-title {
    text-align: center;
    color: var(--reg-heading);
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 10px;
}
.reg-subtitle {
    text-align: center;
    color: var(--reg-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 28px;
}

.reg-page .error {
    color: #b02a37;
    background: #fdecee;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    display: none;
}
.reg-page .error:not(:empty) { display: block; }

/* --- fields --- */
.reg-field { margin-bottom: 18px; }
.reg-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.reg-input::placeholder { color: #9aa4b2; }
.reg-input:focus {
    border-color: var(--reg-accent);
    box-shadow: 0 0 0 3px rgba(8, 106, 216, .12);
}
.reg-input.invalid {
    border-color: #e04b59;
    box-shadow: 0 0 0 3px rgba(224, 75, 89, .12);
}
.error-msg-invalid {
    display: block;
    color: #d63c4a;
    font-size: 12.5px;
    margin-bottom: 6px;
}

/* --- terms --- */
.reg-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 28px;
    font-size: 14.5px;
    color: #374151;
    line-height: 1.5;
}
.reg-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--reg-accent);
    flex: 0 0 auto;
    cursor: pointer;
}
.reg-terms input[type="checkbox"].invalid { outline: 2px solid #e04b59; outline-offset: 2px; }
.reg-terms label { margin: 0; cursor: pointer; }
.reg-terms a {
    color: var(--reg-accent);
    font-weight: 600;
    text-decoration: underline;
}
.reg-terms a:hover { color: var(--reg-accent-dark); }

/* --- submit button (matches main-site "Pieteikt"/ht-btn) --- */
.reg-actions { display: flex; justify-content: center; margin-bottom: 30px; }
.reg-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 220px;
    height: 56px;
    line-height: 1;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
}
.reg-submit i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 14px;
}

/* --- bottom links --- */
.reg-alt-links { text-align: center; }
.reg-alt-links p {
    margin: 0 0 8px;
    color: var(--reg-muted);
    font-size: 14.5px;
}
.reg-alt-links a {
    color: var(--reg-accent);
    font-weight: 700;
    text-decoration: none;
}
.reg-alt-links a:hover { text-decoration: underline; }

/* --- hide the site footer on this flow (page ends after the form) --- */
.footer-area-wrapper,
#scroll-top { display: none !important; }

input:focus::placeholder { color: transparent; }
.logo_header { max-width: 160px; }

/* --- responsive --- */
@media (max-width: 575px) {
    .reg-page { padding: 20px 0 48px; }
    .reg-card { padding: 32px 22px 30px; border-radius: 14px; }
    .reg-title { font-size: 30px; }
    .reg-toolbar { margin-bottom: 20px; }
    .reg-back { font-size: 15px; }
    .reg-input { height: 52px; }
}
