/* LiveAge Custom Login - Dark Theme (aktywny gdy plugin mapy jest zainstalowany)
 * Wzorowany na: liveage.pl/mapa/nowa/logowanie2/
 * Minimalistyczny styl: bottom-border inputy, placeholdery zamiast labeli, cyan akcent
 */

/* ─── Labele wizualnie ukryte, ale dostępne dla czytników ekranu ──────── */
/* NIE display:none - placeholder nie jest etykietą (znika po wpisaniu,
   niski kontrast, pomijany przez część czytników). WCAG 2.1 - 3.3.2, 1.3.1 */

.liveage-login-dark .liveage-login-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Widoczny focus na tło mapy (nie usuwamy obrysu bez zamiennika) */
.liveage-login-dark .liveage-login-form :is(input, button, a):focus-visible {
    outline: 2px solid #41FFD2;
    outline-offset: 2px;
}

/* ─── Wrap (pewne wycentrowanie) ──────────────────────────────────────── */

.liveage-login-wrap.liveage-login-dark {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: clamp(24px, 5vw, 40px) clamp(12px, 3vw, 20px);
    box-sizing: border-box;
}

/* ─── Kontener formularza ─────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-form-container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 36px);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
}

.liveage-login-dark .liveage-account-container {
    max-width: 560px;
}

/* ─── Typografia ──────────────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-title {
    color: #41FFD2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: clamp(18px, 4vw, 22px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.liveage-login-dark .liveage-login-description {
    color: rgba(65, 255, 210, 0.7);
}

/* ─── Inputy - bottom border only ─────────────────────────────────────── */

.liveage-login-dark .liveage-login-field input[type="text"],
.liveage-login-dark .liveage-login-field input[type="email"],
.liveage-login-dark .liveage-login-field input[type="password"] {
    background: rgba(0, 0, 0, 0);
    border: none;
    border-bottom: 1px solid #41FFD2;
    border-radius: 0;
    color: #41FFD2;
    font-size: 14px;
    font-weight: 300;
    padding: 12px 0;
    box-shadow: none;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
}

.liveage-login-dark .liveage-login-field input:focus {
    border-color: #41FFD2;
    box-shadow: none;
    background: rgba(0, 0, 0, 0);
    outline: none;
}

/* Placeholder */

.liveage-login-dark .liveage-login-field input::placeholder {
    color: rgba(65, 255, 210, 0.5);
    font-weight: 300;
}

.liveage-login-dark .liveage-login-field input::-webkit-input-placeholder {
    color: rgba(65, 255, 210, 0.5);
}

.liveage-login-dark .liveage-login-field input::-moz-placeholder {
    color: rgba(65, 255, 210, 0.5);
}

.liveage-login-dark .liveage-login-field input:-ms-input-placeholder {
    color: rgba(65, 255, 210, 0.5);
}

/* ─── Remember me ─────────────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-remember label {
    color: rgba(65, 255, 210, 0.7);
    font-weight: 300;
}

.liveage-login-dark .liveage-login-remember input[type="checkbox"] {
    accent-color: #41FFD2;
}

/* ─── Submit button ───────────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-button {
    background: #41FFD2;
    color: #000;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 300;
    font-size: clamp(12px, 2.6vw, 13px);
    padding: 14px 16px;
    border: none;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.liveage-login-dark .liveage-login-button:hover {
    background: #33e0b8;
    color: #000;
}

.liveage-login-dark .liveage-login-button:active {
    background: #28c9a3;
}

.liveage-login-dark .liveage-login-button-secondary {
    background: transparent;
    color: #41FFD2;
    border: 1px solid #41FFD2;
}

.liveage-login-dark .liveage-login-button-secondary:hover {
    background: #41FFD2;
    color: #000;
}

/* ─── Go to map button (account page) ─────────────────────────────────── */

.liveage-login-dark .liveage-account-map-link {
    margin-top: 28px;
}

.liveage-login-dark .liveage-goto-map-button {
    display: block;
    text-decoration: none;
    text-align: center;
}

/* ─── Logout button (account page) ────────────────────────────────────── */

.liveage-login-dark .liveage-account-logout {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(65, 255, 210, 0.2);
}

.liveage-login-dark .liveage-logout-button {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    display: block;
    text-decoration: none;
    text-align: center;
}

.liveage-login-dark .liveage-logout-button:hover {
    background: #ff6b6b;
    color: #000;
}

/* ─── Messages ────────────────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ff6b6b;
    border-left: 3px solid #ef4444;
}

.liveage-login-dark .liveage-login-success {
    background: rgba(65, 255, 210, 0.1);
    color: #41FFD2;
    border-left: 3px solid #41FFD2;
}

.liveage-login-dark .liveage-login-error-message {
    color: #ff6b6b;
}

/* ─── Links ───────────────────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.liveage-login-dark .liveage-login-links a {
    color: rgba(65, 255, 210, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 400;
    transition: color 0.3s;
    white-space: nowrap;
    text-align: center;
}

.liveage-login-dark .liveage-login-links a:hover {
    color: #41FFD2;
    text-decoration: none;
}

/* ─── Logged in state ─────────────────────────────────────────────────── */

.liveage-login-dark .liveage-login-logged-in {
    color: rgba(65, 255, 210, 0.8);
}

/* ─── Password strength ──────────────────────────────────────────────── */

.liveage-login-dark .liveage-password-strength {
    background: rgba(65, 255, 210, 0.1);
}

/* ─── Password match ─────────────────────────────────────────────────── */

.liveage-login-dark .liveage-password-match.match {
    color: #41FFD2;
}

.liveage-login-dark .liveage-password-match.no-match {
    color: #ff6b6b;
}

/* ─── Account page ───────────────────────────────────────────────────── */

.liveage-login-dark .liveage-account-table th {
    color: rgba(65, 255, 210, 0.5);
}

.liveage-login-dark .liveage-account-table td {
    color: #41FFD2;
}

.liveage-login-dark .liveage-account-table th,
.liveage-login-dark .liveage-account-table td {
    border-bottom-color: rgba(65, 255, 210, 0.1);
}

.liveage-login-dark .liveage-account-links {
    border-top-color: rgba(65, 255, 210, 0.15);
}

/* ─── Account sections ───────────────────────────────────────────────── */

.liveage-login-dark .liveage-account-section {
    border-top-color: rgba(65, 255, 210, 0.15);
}

.liveage-login-dark .liveage-account-section-title {
    color: #41FFD2;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: clamp(13px, 2.6vw, 14px);
    font-weight: 400;
}

/* ─── Moje mapy (dark) ───────────────────────────────────────────────── */

.liveage-login-dark .liveage-map-item {
    background: rgba(65, 255, 210, 0.03);
    border: 1px solid rgba(65, 255, 210, 0.1);
}

.liveage-login-dark .liveage-map-item:hover {
    border-color: rgba(65, 255, 210, 0.3);
    box-shadow: 0 0 12px rgba(65, 255, 210, 0.05);
}

.liveage-login-dark .liveage-map-item-title {
    color: #41FFD2;
}

.liveage-login-dark .liveage-map-item-title:hover {
    color: #fff;
}

.liveage-login-dark .liveage-map-item-meta {
    color: rgba(65, 255, 210, 0.4);
}

.liveage-login-dark .liveage-map-action {
    color: rgba(65, 255, 210, 0.5);
}

.liveage-login-dark .liveage-map-action:hover {
    background: rgba(65, 255, 210, 0.1);
    color: #41FFD2;
}

.liveage-login-dark .liveage-maps-empty {
    color: rgba(65, 255, 210, 0.4);
}

.liveage-account-status {
    border-radius: 4px;
    margin: 0 0 24px;
    padding: 14px 16px;
}

.liveage-account-status strong {
    display: block;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.liveage-account-status p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.liveage-account-status-pending {
    background: rgba(255, 196, 61, 0.08);
    border: 1px solid rgba(255, 196, 61, 0.35);
    color: #ffc43d;
}

.liveage-account-status-denied {
    background: rgba(255, 92, 92, 0.08);
    border: 1px solid rgba(255, 92, 92, 0.35);
    color: #ff5c5c;
}

.liveage-account-status p {
    color: rgba(255, 255, 255, 0.75);
}

.liveage-login-consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 24px;
}

.liveage-consent-field {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.liveage-consent-field input[type="checkbox"] {
    accent-color: #41FFD2;
    flex: 0 0 auto;
    height: 16px;
    margin: 2px 0 0;
    width: 16px;
}

.liveage-consent-field label {
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 12px;
    line-height: 1.5;
}

.liveage-consent-field a {
    color: #41FFD2;
    text-decoration: underline;
}

.liveage-consent-field a:hover,
.liveage-consent-field a:focus {
    color: #fff;
}

.liveage-consent-required {
    color: #41FFD2;
    font-weight: 700;
}

.liveage-consent-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin: 0;
}
