/* LiveAge Custom Login - Form Styles */

.liveage-login-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.liveage-login-form-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
}

.liveage-login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    text-align: center;
}

.liveage-login-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Messages */

.liveage-login-messages {
    margin-bottom: 20px;
}

.liveage-login-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.liveage-login-message:last-child {
    margin-bottom: 0;
}

.liveage-login-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.liveage-login-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.liveage-login-error-message {
    color: #991b1b;
    text-align: center;
    margin-bottom: 20px;
}

/* Form fields */

.liveage-login-form {
    margin-top: 24px;
}

.liveage-login-field {
    margin-bottom: 18px;
}

.liveage-login-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.liveage-login-field input[type="text"],
.liveage-login-field input[type="email"],
.liveage-login-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.liveage-login-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

/* Remember me */

.liveage-login-remember {
    margin-bottom: 24px;
}

.liveage-login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.liveage-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* Honeypot - hidden from users, visible to bots */

.liveage-login-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Submit button */

.liveage-login-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.liveage-login-button:hover {
    background: #2563eb;
}

.liveage-login-button:active {
    background: #1d4ed8;
    transform: scale(0.99);
}

.liveage-login-button-secondary {
    background: #6b7280;
    margin-top: 12px;
}

.liveage-login-button-secondary:hover {
    background: #4b5563;
}

/* Links */

.liveage-login-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.liveage-login-links a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.liveage-login-links a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Logged in state */

.liveage-login-logged-in {
    text-align: center;
    font-size: 16px;
    color: #374151;
    margin: 0 0 16px;
}

/* Password strength indicator */

.liveage-password-strength {
    margin-top: 6px;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
    transition: opacity 0.2s;
}

.liveage-password-strength.active {
    opacity: 1;
}

.liveage-password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
    width: 0;
}

.liveage-password-strength-bar.strength-weak {
    width: 25%;
    background: #ef4444;
}

.liveage-password-strength-bar.strength-fair {
    width: 50%;
    background: #f59e0b;
}

.liveage-password-strength-bar.strength-good {
    width: 75%;
    background: #3b82f6;
}

.liveage-password-strength-bar.strength-strong {
    width: 100%;
    background: #22c55e;
}

/* Password match */

.liveage-password-match {
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

.liveage-password-match.match {
    color: #166534;
}

.liveage-password-match.no-match {
    color: #991b1b;
}

/* Account page */

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

.liveage-account-info {
    margin-top: 24px;
}

.liveage-account-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.liveage-account-avatar img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.liveage-account-table {
    width: 100%;
    border-collapse: collapse;
}

.liveage-account-table th,
.liveage-account-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.liveage-account-table th {
    font-weight: 500;
    color: #6b7280;
    width: 40%;
}

.liveage-account-table td {
    color: #1a1a1a;
}

.liveage-account-links {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

/* Account sections */

.liveage-account-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.liveage-account-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
}

/* Moje mapy */

.liveage-maps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liveage-map-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.liveage-map-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.liveage-map-item-info {
    flex: 1;
    min-width: 0;
}

.liveage-map-item-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.liveage-map-item-title:hover {
    color: #3b82f6;
}

.liveage-map-item-meta {
    display: flex;
    gap: 12px;
    margin-top: 3px;
    font-size: 12px;
    color: #9ca3af;
}

.liveage-map-item-actions {
    flex-shrink: 0;
}

.liveage-map-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.liveage-map-action:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.liveage-maps-empty {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    padding: 20px 0;
}

/* Responsive */

@media (max-width: 480px) {
    .liveage-login-wrap {
        padding: 20px 12px;
    }

    .liveage-login-form-container {
        padding: 28px 20px;
    }

    .liveage-login-title {
        font-size: 20px;
    }
}
