/* ========================================================================
   Sync.Land Account Dashboard
   ======================================================================== */

/* ---- Tab Navigation ---- */
.syncland-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid #404060;
}

.syncland-nav-tabs {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.syncland-nav-item {
    flex-shrink: 0;
}

.syncland-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.syncland-nav-link:hover {
    color: #e2e8f0;
}

.syncland-nav-active .syncland-nav-link {
    color: #E7565A;
    border-bottom-color: #E7565A;
}

/* ---- Welcome Header ---- */
.syncland-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.syncland-welcome-avatar .profile-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E7565A;
    box-shadow: 0 4px 15px rgba(231, 86, 90, 0.3);
}

.syncland-welcome-text h2 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ---- Quick-action Cards ---- */
.syncland-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.syncland-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px 15px;
    background: #252540;
    border: 1px solid #404060;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.syncland-action-card:hover {
    transform: translateY(-3px);
    border-color: #E7565A;
    box-shadow: 0 4px 20px rgba(231, 86, 90, 0.2);
}

.syncland-action-card i {
    font-size: 1.8rem;
    color: #E7565A;
}

.syncland-action-card strong {
    font-size: 1rem;
}

.syncland-action-card span {
    font-size: 0.8rem;
    color: #a0aec0;
    line-height: 1.3;
}

/* ---- Login Form ---- */

/* Hide the page title when login form is showing */
.page-id-8087:not(.logged-in) .page-header {
    display: none;
}

#ur-frontend-form.ur-frontend-form.login {
    max-width: 420px;
    margin: 80px auto 60px;
    padding: 40px 36px 36px;
    background: #1a1a2e;
    border: 1px solid #404060;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#ur-frontend-form.login .ur-form-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#ur-frontend-form.login label {
    color: #c4cdd8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

#ur-frontend-form.login .input-text {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #404060;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#ur-frontend-form.login .input-text:focus {
    outline: none;
    border-color: #E7565A;
    box-shadow: 0 0 0 3px rgba(231, 86, 90, 0.2);
}

#ur-frontend-form.login .user-registration-Button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #E7565A;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.08s ease;
    margin-top: 8px;
}

#ur-frontend-form.login .user-registration-Button:hover {
    background: #d04448;
}

#ur-frontend-form.login .user-registration-Button:active {
    transform: translateY(1px);
}

#ur-frontend-form.login .user-registration-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 4px;
}

#ur-frontend-form.login .lost_password,
#ur-frontend-form.login .register {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

#ur-frontend-form.login .lost_password a,
#ur-frontend-form.login .register a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

#ur-frontend-form.login .lost_password a:hover,
#ur-frontend-form.login .register a:hover {
    color: #E7565A;
}

#ur-frontend-form.login .required {
    color: #E7565A;
}

#ur-frontend-form.login .required::after {
    content: none;
}

/* ---- Password toggle (eye icon inside input) ---- */
.password-input-group {
    position: relative;
    display: block;
}

.password-input-group input {
    padding-right: 44px !important;
}

#ur-frontend-form .password-input-group .password_preview.dashicons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    color: #a0aec0;
    cursor: pointer;
    text-decoration: none;
    z-index: 2;
    transition: color 0.15s ease;
    margin: 0;
    padding: 0;
}

#ur-frontend-form .password-input-group .password_preview.dashicons:hover {
    color: #e2e8f0;
}

#ur-frontend-form .password-input-group .password_preview.dashicons::before {
    line-height: 20px;
    display: block;
}

/* ---- Suppress UR nav when embedded inside syncland-dashboard ---- */
.syncland-dashboard .user-registration-MyAccount-navigation {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .syncland-nav-tabs {
        gap: 0;
    }

    .syncland-nav-link {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .syncland-nav-link span {
        display: none;
    }

    .syncland-nav-link i {
        font-size: 1.1rem;
    }

    .syncland-welcome {
        gap: 14px;
    }

    .syncland-welcome-avatar .profile-preview {
        width: 60px;
        height: 60px;
    }

    .syncland-welcome-text h2 {
        font-size: 1.2rem;
    }

    .syncland-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .syncland-action-card {
        padding: 18px 10px;
    }

    .syncland-action-card i {
        font-size: 1.4rem;
    }

    /* Login form — tighter on mobile */
    #ur-frontend-form.ur-frontend-form.login {
        margin: 30px auto;
        padding: 28px 20px 24px;
        border-radius: 12px;
    }
}
